Re: What am i doing wrong? SQL Query in PHP [WORKS!!]

From: Date: Sun, 09 Mar 2003 15:01:45 +0000
Subject: Re: What am i doing wrong? SQL Query in PHP [WORKS!!]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138861@lists.php.net to get a copy of this message
Chris, Thanks a lot.. THIS WORKS! Works brilliantly. All other methods were just failing. Thanks man. > // fetch row is faster than fetch_assoc, which is > faster than fetch_array > // fetch_result might even be a better choice here, > though, with only one > item... > if (!mysql_num_rows($result)) { > print 'no results'; > } else { > while (list($title) = mysql_fetch_row($result)) { > print $title; // don't quote variables if you only > want to print them by > themselves > } > } Rahul S. Johari __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/

« previous php.general (#138861) next »