RE: [PHP] Date Q

From: Date: Fri, 10 May 2002 05:12:53 +0000
Subject: RE: [PHP] Date Q
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96904@lists.php.net to get a copy of this message
On Thu, 9 May 2002, Jason Soza wrote: > Thanks for the code, but I already have: > $result = mysql_query("SELECT * FROM table"); > > And I use while ($row = mysql_fetch_array($result)) along with extract($row) > to get my data. > > It's been my general understanding that querying twice in one script is bad. > How do I incorporate your code into my script w/o querying again? What's bad is using more database queries than you need. If you need to know two different things, query twice. miguel

« previous php.general (#96904) next »