Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

Re: [PHP-DB] Even weirder! From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/08/01

> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>