AW: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-10 Thread Ralph Deffke
Von: Martin Scotta martinsco...@gmail.com An: Andrew Ballard aball...@gmail.com CC: Ralph Deffke ralph_def...@yahoo.de; php-gene...@lists..php.net Gesendet: Montag, den 10. August 2009, 20:40:19 Uhr Betreff: Re: [PHP] reason for a Notice:.. on one site but not another? (Same

[PHP] Re: how to say inverse your value (to a boolean)?

2009-08-10 Thread Ralph Deffke
with XOR try this $a = 0; echo $a ^ 1; $a = 1; echo $a ^ 1; hope that helps ralph ralph_def...@yahoo.de John Butler govinda.webdnat...@gmail.com wrote in message news:52842d6f-dd45-44a6-ae06-2e58ef8f6...@gmail.com... quick Q: I have this inside a foreach{} that I want to alternate between

[PHP] Re: how to say inverse your value (to a boolean)?

2009-08-10 Thread Ralph Deffke
u... try echo pre; for( $i=0 ; $i10; $i++){ echo something . (($a = $a^1) ? red\n : green\n); } echo /pre; watchout the brackets ! cheers ralph_def...@yahoo.de John Butler govinda.webdnat...@gmail.com wrote in message news:52842d6f-dd45-44a6-ae06-2e58ef8f6...@gmail.com... quick Q: I

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Ralph Deffke
of functions doing some stuff the user of the framework hasn't to take care about by using the framework. hope that helps ralph ralph_def...@yahoo.de Parham Doustdar parha...@gmail.com wrote in message news:5c.b0.05105.f18be...@pb1.pair.com... Hi there, I've heard of frameworks, but I don't quite

[PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to older version. is somebody out there who can give

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
every record and expected the auto_increment to reset. Jerry Wilborn jerrywilb...@gmail.com On Sun, Aug 9, 2009 at 1:17 PM, Ralph Deffke ralph_def...@yahoo.de wrote: Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
that you dropped every record and expected the auto_increment to reset. Jerry Wilborn jerrywilb...@gmail.com On Sun, Aug 9, 2009 at 1:17 PM, Ralph Deffke ralph_def...@yahoo.de wrote: Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
/9/09, Ralph Deffke wrote: Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to older version

[PHP] Re: MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
Engström news.nospam.0ixbt...@luden.se wrote in message news:91.f7.55947.dc74f...@pb1.pair.com... On Sun, 9 Aug 2009 20:17:15 +0200, Ralph Deffke wrote: I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install

[PHP] Re: MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
I should mention that I use MyISAM as storage engine what makes it even more wiered. Nisse Engström news.nospam.0ixbt...@luden.se wrote in message news:91.f7.55947.dc74f...@pb1.pair.com... On Sun, 9 Aug 2009 20:17:15 +0200, Ralph Deffke wrote: I'm facing the fact that it seems

[PHP] Re: str_replace

2009-08-08 Thread Ralph Deffke
looks good, u r searching for $bible_verse_ref in $text_message_template to be replaced by the string bible_verse_ref. if that makes sence to u, yes its right. ralph ralph_def...@yahoo.de Ron Piggott ron@actsministries.org wrote in message news:83745b9e385a4402888ba5924c296

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
of course u can do this by sql. see this SELECT * FROM `sometable` LIMIT 0 , 30 gives u max 30 records if existstarting at record 0 on the next request u could say SELECT * FROM `sometable` LIMIT 30 , 30 giving u max 30 recotds starting at record 30 ralph ralph_def...@yahoo.de Nisse EngstrÃ

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
but then ur byond simple select, man, I do hate unions and try to avoid those. Nisse Engström news.nospam.0ixbt...@luden.se wrote in message news:8b.50.40613.c518d...@pb1.pair.com... On Sat, 8 Aug 2009 15:01:42 +0200, Ralph Deffke wrote: of course u can do this by sql. see this SELECT

[PHP] Re: PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-07 Thread Ralph Deffke
Hi Larry, nice to have a comment from the editor, and I want to say thanks for writing this book. however this discussion was initiated by a newbie asking what book he should use to learn php. ur book is important to the community of php freaks ! it saved my time to see where the path is going

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Ralph Deffke
a DAILY backup AND reset of the logging tables. so the tables where never much bigger then 5 records. so if u use mySQL and the buffer technices mentioned earlier I would go with it because of the benefit not to maintain another different tool. ralph ralph_def...@yahoo.de Waynn Lue waynn

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
. to give u all the details is worth some time and time is money. the amount of documentation to figure out the details is not small. start with some w3c and rfc standard to get the clue. regards ralph ralph_def...@yahoo.de nashrul anas_a...@yahoo.com wrote in message news:24839092.p

Re: [PHP] PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-06 Thread Ralph Deffke
because this is to start with the baby figuring out about a family :-) ralph_def...@yahoo.de Eddie Drapkin oorza...@gmail.com wrote in message news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... On Thu, Aug 6, 2009 at 11:32 AM, teddtedd.sperl...@gmail.com wrote: At 5:34 PM -0700

AW: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
u playing arround with the htaccess file 3. its easy in those and other cases 4. image directores are public, and apear in search engines Von: Michael A. Peters mpet...@mac.com An: Ralph Deffke ralph_def...@yahoo.de CC: php-general@lists.php.net Gesendet

[PHP] Re: Character encoding

2009-08-05 Thread Ralph Deffke
I assume that the comments are collected by a browser form provided by you ! do u use the form attribute accept-charset ? I always do and I always use UTF-8 homogeniously throughout my application I never had that problem. Sándor Tamás (HostWare Kft . ) sandorta...@hostware.hu wrote in

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
ans stop as many times he wants a day or time range. u can report any number of time bits to any number of project a day or time range Ralph Shawn McKenzie nos...@mckenzies.net wrote in message news:5e.47.03459.7ead9...@pb1.pair.com... So, obviously not PHP related, but I'm looking for thoughts

[PHP] Re: dynamically naming PHP vars on the fly?

2009-08-05 Thread Ralph Deffke
u can dynamical chosse a variable name with a variable using a douple $ charachter eg. $a = this is a: $b = a; echo $$b; outputs this is a this is an all open feature to u have fun ralph Govinda govinda.webdnat...@gmail.com wrote in message news:a215e849-2602-4cb3-9da7-718ff047a...@gmail.com

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
and it is not a good idear to do them unique, that is because internally those field are stored in databases as long unsigned integer often the passed seconds since 1982 (the birth of the ibm pc) or even miliseconds. that means there is always internally a big juggling to format the date. Ralph

[PHP] Re: PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-05 Thread Ralph Deffke
why do u stick to php 6? i would recommend www.scribd.com and have a search on PHP. there are books on beginners for php5 and articles of the difference to php 6. a very usefull site by the way, made me stopping buying books. loads of material on IT stuff. ralph ralph_def...@yahoo.de sono

[PHP] how to pass variable argument list in a childconstructor to parent constructor, ideas wanted

2009-08-02 Thread Ralph Deffke
problem: __ construct( $something ... variable argument list ){ parent::__construct( ??? ); } I tried with func_get_args, but the problem is that it gives an indexed array back. lets say the argument list is mixed like this: ( string, string, array) func_get_args will give this [0] =

[PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
Thanks a lot for your answers! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
Ralph Kutschera wrote: Is there a standard function in PHP to convert any string for usage with XML? In the example the string should become lt; thats a bracket. I found htmlspecialchars() now. But the question that remains: Is that sufficient for XML? regards, Ralph -- PHP General Mailing

[PHP] Converting user input for XML-validation

2007-11-16 Thread Ralph Kutschera
. Is there a standard function in PHP to convert any string for usage with XML? In the example the string should become lt; thats a bracket. Thanks a lot, Ralph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function - action

2007-08-03 Thread Ralph Kutschera
() { ... } ... is actually the same but would help to see the design also in the code. TIA, Ralph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parent Object

2007-08-01 Thread Ralph Kutschera
resolve this issue? I don't want to know which class is being inherited, but I'd like to know which class has created the current object. TIA, Ralph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache - page fault in php5ss.dll in phpmyadmin?

2006-09-24 Thread Ralph Frost
have questions into the phpmyadmin forum but have not heard back yet. Thanks in advance for any thoughts or suggestions for resolving this sort of behavior or uncovering the flaw I am overlooking. Best regards, Ralph Frost

[PHP] php-db@lists.php.net

2005-01-23 Thread Ralph Frost
, 2004? Thank you in advance for any help you can offer. Best regards, Ralph Frost Imagine consciousness as a single internal analog language made of ordered water, fabricated on-the-fly during respiration. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] getting an array out of the POST array

2004-08-17 Thread Ralph G
Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and $_POST[lastname][$key]. It should simply be $firstname[$key], $middlename[$key], and $lastname[$key] Not sure what your array data looks like but instead of using while() use foreach(): foreach($_POST['firstname'] as $key

RE: [PHP] Re: php inventory control software

2004-08-02 Thread Ralph G
See www.eshox.com -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 1:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php inventory control software John W. Holmes wrote: From: John Nichel [EMAIL PROTECTED] Steve Douville wrote: Take a

RE: [PHP] PHP OO concepts

2004-04-11 Thread Ralph G
OOP? Stay tuned for PHP5 -Original Message- From: jdavis [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 1:45 PM To: PHP List Subject: [PHP] PHP OO concepts Hello, I have am checking out PHP OOP and it's pretty smooth. I have a decent amount of Java experience so PHP OOP

RE: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread Ralph G
Check these out: http://www.juicystudio.com/tutorial/php/index.asp http://www.scit.wlv.ac.uk/~jphb/sst/php/ -Original Message- From: Ash.. [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Looking for a comprehensive PHP tutorial Hi,

RE: [PHP] Domain Name ?

2004-04-01 Thread Ralph Guzman
The easy way... $domain = http://www.foo.com;; $domain = explode('.', $domain); $foo = $domain['1']; -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 1:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Domain Name ? Hi List, I asked this a

RE: [PHP] Re: [PHP-WIN] ASP.NET web control in PHP?

2004-03-31 Thread Ralph Guzman
You might also want to look at opensource frameworks like Ampoliros or Ez publish -Original Message- From: Ignatius Reilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 9:21 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Bill Subject: [PHP] Re: [PHP-WIN] ASP.NET web control in

[PHP] RE:

2004-03-30 Thread Ralph Guzman
Might be a Register Globals issue: http://us4.php.net/register_globals -Original Message- From: Ketvin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 12:40 AM To: [EMAIL PROTECTED] Subject: Dear all, i just move my previous php script to a new server and found that it is

RE: [PHP] session.bug_compat_42

2004-03-24 Thread Ralph
It's great to see you on the list Rasmus! Anxiously awaiting for official release of PHP5...I haven't been this excited since the release of PHP4!!! :-) Many thanks go out to you and the others who make PHP possible. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]

RE: [PHP] small business inventory management package

2004-03-10 Thread Ralph
OSSUITE: http://sourceforge.net/projects/ossuite/ or just browse through sourceforge projects: http://sourceforge.net/softwaremap/trove_list.php?form_cat=129discrim=183 -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 1:38 AM To:

RE: [PHP] How many days between two dates

2004-02-16 Thread Ralph
Use KronoClass: http://lafucina.holosoft.it/kronoclass/index.html example: // Now calc how days are between date_from and date_to echo 'bHow many days are between 03/20/2003 and 04/21/2003 ?: /bi'; echo $k-days_diff('03/20/2003','04/21/2003'); echo '/ibrbr'; -Original Message- From:

[PHP] PHP Social Software

2004-01-30 Thread Ralph
Anybody know of any PHP based Social Software projects? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [posibleOT] Forcing entering te site thru index.php

2004-01-28 Thread Ralph
The only other way I can think of doing this without sessions is to use $_SERVER['HTTP_REFERER'] to check if page request is coming from an existing page within your site or not. But I don't think this method will work 100% of times. Another approach would probably be to use single entry point

RE: [PHP] PHP EDITORS

2004-01-28 Thread Ralph
I agree that Zend Studio is phenomenal. Another editor that I like is NuSphere's PhpEd. You might want to look at this one too: http://www.nusphere.com/ -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:04 PM To: [EMAIL PROTECTED]

RE: [PHP] How to prevent duplicated values?

2004-01-27 Thread Ralph Guzman
What I would do would instead be to put an index on that column, then with a simple select check if that username is free or not. Based on what I get in return I can then either insert the data or return the form to the visitor with information about it. Much more simple in the long run. I

RE: [PHP] Making Graph / Chart

2004-01-27 Thread Ralph Guzman
Take a look at jpgraph: http://www.aditus.nu/jpgraph/ -Original Message- From: unkno me [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Making Graph / Chart Hi, Does anyone know what function is needed to make graphic chart like

[PHP] Online Community Project

2004-01-21 Thread Ralph Guzman
I want to develop a friendster like program in php. I've searched the net to see if there are any similar programs or projects but I have not found anything. Anybody seen or come across any programs or projects for developing a friendster like community? -- PHP General Mailing List

[PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Ralph Guzman
In the past I've read emails of people looking for php programming tips and better practice advice. Here is a good article I came across on writing efficient php code: http://www-106.ibm.com/developerworks/edu/wa-dw-waeffphp-i.html -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Buffalo'ed, stumped, confused...

2004-01-09 Thread Ralph Guzman
For debugging purposes, if you want to see all values in $_POST use this code: print 'pre'; print_r($_POST); print '/pre'; or this: print 'pre'; var_dump($_POST); print '/pre'; -Original Message- From: Robin Kopetzky [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:31 PM

RE: [PHP] Hiding files away from /public_html/

2004-01-09 Thread Ralph Guzman
Put them in a folder with .htaccess: RewriteEngine onRewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] ReWriteRule .*\.(gif|jpg)$ - [N,F,L] -Original Message-

RE: [PHP] post vars not by form

2004-01-09 Thread Ralph Guzman
Use socket connection: http://www.php.net/fsockopen read the User Contributed Notes where you will find functions and examples. -Original Message- From: Nabil [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: [PHP] post vars not by form

RE: [PHP] Re: Not working?

2004-01-09 Thread Ralph Guzman
Or this: system(rename('/path/to/new.sh', '/path/to/old' . $today)); -Original Message- From: Matt Grimm [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Not working? You can't use variables inside single quotes, either.

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
Here is a function that will do this, assuming $items is an array you would do the following: // $size INTEGER // $width INTEGER // border INTEGER // $cpadding INTEGER // $cspacing INTEGER // $data ARRAY function horizontalTable($size, $width, $border, $cpadding, $cspacing, $data) {

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
Here is a function I use. Assuming data is stored in an array called $items you will call out horizontalTable() like this: horizontalTable(3,600,1,3,3, $items); Here is the horizontalTable() function code: // $size: number of columns // $width: table width // $border: table border //

RE: [PHP] Sorting data into columns vertically

2004-01-09 Thread Ralph Guzman
DISREGARD THIS ONE -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 4:35 PM To: 'Raditha Dissanayake'; 'dareal hamsta' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Sorting data into columns vertically Here is a function that will do

RE: [PHP] Re: post an array into another site

2003-12-08 Thread Ralph Guzman
= THE END = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Virtual Directory Support

2003-12-03 Thread Ralph Guzman
Support On Wednesday 03 December 2003 12:51, Ralph Guzman wrote: I have a new installation of PHP 4.1.2 and it appears I cannot run php scripts outside of apache root directory. How did you come to this conclusion? Was there an error message? If so, what did it say? If there was no error message

[PHP] Virtual Directory Support

2003-12-02 Thread Ralph Guzman
I have a new installation of PHP 4.1.2 and it appears I cannot run php scripts outside of apache root directory. I look at phpinfo() and I saw Virtual Directory Support is set to disabled. I'm suspecting this could me the problem, but I have not been able to find anything on google or the lists

[PHP] Sorting DB Results

2003-11-13 Thread Ralph Guzman
I am trying to write a query (mysql 3.23) that will sort results using one or two substrings in item number. So for example I have item numbers that start with SE, TS, N0, W00, etc. So let say I want results sorted in the following order TS, SE, N0, W0 I have

RE: [PHP] PHP Journals and Magazined

2003-10-14 Thread Ralph Guzman
If you are looking for magazines: http://www.phphub.com/browse.php?cat=52 You can find all sorts of PHP resources online. Here are a few of my favorites: http://www.phphub.com/ http://www.zend.com/developers.php http://www.sitepoint.com/ http://www.devshed.com/Server_Side/PHP and of course,

RE: [PHP] Select multiple payment mode

2003-10-01 Thread Ralph Guzman
I guess the thing to do would be to log in payments in the database. So lets say the total is $50.00, if the user pays $25 on cc and payment is authorized, then log this into the database, then show the remaining balance. At this point you can give user the option to pay the remaining balance

RE: RE: [PHP] PHP Editor - which to use?

2003-09-24 Thread Ralph Guzman
It doesn't do syntax highlighting, but if you need that, then you need to learn to code better. Ha,ha. too funny. -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:56 AM To: jeffrey pearson; [EMAIL PROTECTED] Subject: Re: RE: [PHP] PHP

RE: [PHP] Subcategories in php

2003-09-24 Thread Ralph Guzman
This article explains four methods for doing this: http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17 /4047/index.html -Original Message- From: phpu [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 7:41 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] php with MsSql

2003-09-24 Thread Ralph Guzman
You might also want to look at these libraries for mssql native support: http://www.freetds.org -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:21 AM To: [EMAIL PROTECTED] Subject: [PHP] php with MsSql I'm creating a

RE: [PHP] Single Quotes vs Double Quotes

2003-09-09 Thread Ralph Guzman
Read this article: http://www.zend.com/zend/tut/using-strings.php -Original Message- From: micro brew [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 9:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Single Quotes vs Double Quotes Hi everyone, Could somebody please explain to

RE: [PHP] mysql Pattern Matching

2003-09-05 Thread Ralph Guzman
Is there an advantage or difference in running FIND_IN_SET() instead of LIKE? -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:53 AM To: Ralph Guzman; PHP General Mailing List Subject: Re: [PHP] mysql Pattern Matching From: Ralph

[PHP] mysql Pattern Matching

2003-09-04 Thread Ralph Guzman
I know this question is best for the mySQL mailing list, but I am unable to subscribe to their list at this moment so perhaps somebody here can help me out. I have a table with a field where amenities are listed together using a comma delimiter like: pool,spa,fitness-center To search this table

RE: [PHP] A bd problem

2003-09-04 Thread Ralph Guzman
First, do not use HTML email for posting questions to the list. Take a look at: $not = $consulta-fetch_row($res); not familiar with your BaseDatos class, but fetch_row will normally return an enumerated array, this means that rather than using $not['Descripcion'] you should be using $not['0'],

[PHP] Best Approach for Multiple Options

2003-09-03 Thread Ralph Guzman
I'm currently in the process of writing a real estate listings program and I am not sure what the best approach is for storing and searching through the property amenities. Example: houses or apartment amenities can be a pool, fitness center, spa, etc. Users must be able to search for listings

RE: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread Ralph Guzman
Change box names to chk[] and assign the id as the value, so for example: INPUT TYPE=checkbox NAME=chk[] VALUE=56 to check which boxes have been checked simply traverse through the chk[] array like this: $chk_array = $_POST['chk']; for($chk_array as $chk_key = $chk_value) { print 'Checkbox

RE: [PHP] OO PHP question

2003-08-26 Thread Ralph Guzman
http://www.php.net/oop http://php.resourceindex.com/Documentation/Class_Design_and_OOP/ http://www.evolt.org/article/PHP_Intro_to_Objects_and_Classes/17/48911/i ndex.html -Original Message- From: Mike Zornek [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 11:01 AM To: [EMAIL

RE: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Ralph Guzman
function test($arg1, $arg2, $arg3 = ) { if(isset($arg3)) { // do whatever with $arg3 } } -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 7:56 PM To: [EMAIL PROTECTED] Subject: [PHP] How to make an argument

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Ralph Guzman
['total_size'] . 'MBs BR'; } I have not tested this but it should work. Ralph -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 8:54 PM To: 'Ralph Guzman'; [EMAIL PROTECTED] Subject: RE: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Ralph Guzman
- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:41 PM To: 'Cesar Aracena'; [EMAIL PROTECTED] Subject: RE: [PHP] Delimiter WITHOUT lots of IF's Sensitivity: Confidential I agree with Curt, use mySQL to get the sum of 'sess_itemsize' then divide the result by size

RE: [PHP] in the middle of shift and pop

2003-08-19 Thread Ralph Guzman
unset($A[2]); -Original Message- From: Decapode Azur [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 3:26 PM To: [EMAIL PROTECTED] Subject: [PHP] in the middle of shift and pop is it possible to remove an element of an indexed array such as this exemple $A = array('a',

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
How are you keeping track of items added being added to the shopping cart? -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity:

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
How are you keeping track of items added being added to the shopping cart? -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity:

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
To: 'Ralph Guzman'; [EMAIL PROTECTED] Subject: RE: [PHP] Delimiter WITHOUT lots of IF's Importance: High Sensitivity: Confidential Using a cookie (I know, I know...) I plant a cookie in the visitor's browser when he opens the site with a random generated number which expires when the browser(s

RE: [PHP] Validate The Last Day of Month with server's clock????

2003-08-17 Thread Ralph Guzman
?php // check last day of september $month = '08'; $year = date(Y); $last_day = date(t, mktime (0,0,0, $month,1,$year)); print $last_day; ? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Category and sub-category logic

2003-08-17 Thread Ralph Guzman
Read this article: http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17 /4047/index.html It explains the 4 different methods that you can use when working with hierarchical data. -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14,

[PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
How can I get the last day for the current month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Ralph Guzman
Might want to take a look at: http://www.htdig.org/ Using the PHP wrapper class: http://sourceforge.net/projects/htphp/ -Original Message- From: Louie Miranda [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 12:42 AM To: [EMAIL PROTECTED] Subject: [PHP] php, search engine that

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
wow. I missed that one in the manual. I guess it's time for me to call it a night. Thanks. -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re: [PHP] LAST DAY OF MONTH ? print date(t

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
I just noticed, this will give me total days for current month. But let's say I want to look up the total days for another month? -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Ralph Guzman
This will help: http://catb.org/~esr/faqs/smart-questions.html This has got to be the longest thread I've seen. -Original Message- From: andu [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Stop neurotic posting This is a very

RE: [PHP] Re: PHP Fusebox

2003-08-14 Thread Ralph Guzman
Alexandru, I will take a look at Krysalis. Thanks for your response. Ralph -Original Message- From: Alexandru COSTIN [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 12:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP Fusebox Hello Ralph, Anyway, as a sample

RE: [PHP] Application Dev -- Separating code for speed.

2003-08-14 Thread Ralph Guzman
http://bombusbee.com/ -Original Message- From: Jonathan Pitcher [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 7:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Application Dev -- Separating code for speed. I have a application, almost like a web portal. I am working on developing

[PHP] Generate Dates

2003-08-14 Thread Ralph Guzman
I have to generate a menu for all months in a year, with each month broken down into two periods. For example: January 01-15 January 15-31 February 01-15 February 15-28 March 01-15 March 15-31 Etc... How can generate a list of all 12 months using the above format? -- PHP General Mailing List

RE: [PHP] PHP vs ASP.NET formal opinions request

2003-08-12 Thread Ralph Guzman
http://www.wowwebdesigns.com/wowbb/forum12/149.html you might also want to take a look at mono project. An open source implementation of .net http://www.go-mono.com/ -Original Message- From: Douglas Douglas [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 7:46 PM To: [EMAIL

RE: [PHP] Best PHP CMS

2003-08-10 Thread Ralph Guzman
Any opinions on ezPublish 3? http://www.ez.no/ I am considering this as a CMS and framework for my future projects. -Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:14 PM To: Anthony; [EMAIL PROTECTED] Subject: RE: [PHP] Best PHP CMS

[PHP] Regular Expression

2003-08-10 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I'm using /i to make this case insensitive. I got it working with 1 2, but it's still not matching 3. Any suggestions? if(preg_match(

RE: [PHP] Re: PHP Fusebox

2003-08-06 Thread Ralph Guzman
I am not set on Fusebox, but the reason I've been considering it is because I came across ezPublish 3, that uses this framework. I am looking for a CMS with a framework that I can use to develop my future projects. Are there any PHP/MySQL based XML/XSLT CMS that I can look at? I am just doing

[PHP] How to Ask Questions THe Smart Way...

2003-08-04 Thread Ralph Guzman
Here is something some of you on this list may find funny, others may find this useful. This is not spam, this is actually a good manual you should all read: http://catb.org/~esr/faqs/smart-questions.html Good Reading. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Regular Expression

2003-08-04 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I'm using /i to make this case insensitive. I got it working with 1 2, but it's still not matching 3. Any suggestions? if(preg_match(

[PHP] PHP Fusebox

2003-08-04 Thread Ralph Guzman
with Fusebox, or can anybody recommend any other frameworks that I should also look at? I am looking for a framework that will be developed going into PHP 5 also. Your help is appreciated. Ralph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] PHP SESSIONS and FRAMES

2003-08-03 Thread Ralph Guzman
I have a shopping cart with affiliate sales support. What's happening is that some affiliates are using frames to use their domain while using our shopping cart. So they are using a frameset like this: frameset rows=1,* FRAMEBORDER=0 BORDER=0 frame MARGINWIDTH=0 MARGINHEIGHT=0 name=board

RE: [PHP] Search Engine

2003-08-01 Thread Ralph Guzman
Check out: http://www.htdig.org/ -Original Message- From: imran [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Search Engine Hi, Does anyone know any free search engine for web application imee -- PHP General Mailing

[PHP] Article: PHP vs ASP

2003-07-31 Thread Ralph Guzman
Might want to file this link, next time somebody asks about PHP vs. ASP http://www.wowwebdesigns.com/wowbb/forum12/149.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Registering Session

2003-07-30 Thread Ralph Guzman
I have a shopping cart checkout form where I am using GET to specify payment method from payment_method.php page. So I have something like the following: From payment_method.php the user chooses payment method by clicking on a payment link that then send them to the checkout_form.php

RE: [PHP] Problem setting variables.

2003-07-28 Thread Ralph Guzman
//Find User Configuration $sql = mysql_query(SELECT field_name FROM config WHERE show_field=1) OR die(Could not query database: .mysql_error().); while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){ $field_name_array[] = $result['field_name'] } // Iterate through array and print fields

<    1   2   3   4   >