Re: Even weirder!
| From: | Rasmus Lerdorf | Date: | Mon, 08 Jan 2001 07:31:57 +0000 |
| Subject: | Re: Even weirder! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5697@lists.php.net to get a copy of this message | ||
> while($row=mysql_fetch_object($result)) {
> $nextquery = "SELECT id, datestamp, thread, subject, author FROM $row->name ORDER BY
> datestamp ASC LIMIT 0, 20";
>
> $sSQL = mysql_fetch_array($nextquery); //this is line 30 in the script
This part makes no sense. $nextquery is not a result identifier here. It
is simply a string. I think you forgot to actually perform the query.
> if (!$s_row = mysql_fetch_object($sSQL)) { //...which makes this 31 :)
Since line 30 was wrong, it makes sense for this to fail too.
-Rasmus