RE: [PHP-DB] Stupid newbie looping MySQL question
| From: | Lynn Siprelle | Date: | Sun, 07 Jan 2001 20:39:22 +0000 |
| Subject: | RE: [PHP-DB] Stupid newbie looping MySQL question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5686@lists.php.net to get a copy of this message | ||
>And in the bunch more stuff, you run another mysql_query(), which replaces the result table in
>the buffer with the result table from the new query. If the result of the second query is assigned
>to a variable other than $result, then $result now points to a nonexistent result table. On the
>second pass through the while loop, mysql_fetch_array($result) returns an error, because there is no
>longer anything to fetch.
Nope, looked at the script again, and this can't be the case. I'm using a different name
for the query and for the buffer; they wouldn't be in conflict.
Lynn
--
Lynn Siprelle, Siprelle & Associates: Web Construction and Publishing
Chief Assoc. Josephine b. 9/9/97 * New Assoc. Louisa due 5/1/01
Business: lynn@siprelle com | Personal: lynsa@siprelle.com
The New Homemaker: http://www.newhomemaker.com/