Re: using mysql_query() twice?
| From: | Erik Price | Date: | Fri, 11 Jan 2002 22:34:21 +0000 |
| Subject: | Re: using mysql_query() twice? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80250@lists.php.net to get a copy of this message | ||
EXCELLENT!
It worked perfect.
So $result can't be used twice -- I wonder if it somehow is altered by the mysql_fetch_array() that is performed upon it.
Thanks Nick.
On Friday, January 11, 2002, at 05:23 PM, Nick Wilson wrote:
I'll most likely be corrected (I just joined the list to brush up on my php) but I think that if you change thisto thiswhile ($row = mysql_fetch_array($result) or die("You lose. No dataYou'll be on the right track.while ($row = mysql_fetch_array($another_result) or die("You lose. No data