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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php