php-db | 2001011
Date: 01/08/01
- Next message: Rasmus Lerdorf: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- Previous message: Lynn Siprelle: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- In reply to: Lynn Siprelle: "[PHP-DB] Even weirder!"
- Next in thread: Lynn Siprelle: "Re: [PHP-DB] Even weirder!"
- Reply: Lynn Siprelle: "Re: [PHP-DB] Even weirder!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Rasmus Lerdorf: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- Previous message: Lynn Siprelle: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- In reply to: Lynn Siprelle: "[PHP-DB] Even weirder!"
- Next in thread: Lynn Siprelle: "Re: [PHP-DB] Even weirder!"
- Reply: Lynn Siprelle: "Re: [PHP-DB] Even weirder!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

