RE: [PHP-DB] determining if a query returns no value

2003-08-14 Thread Matt Schroebel
Wendall Williams wrote: If the client has no entries for that category, it needs to move on to the next category. Yes, see mysql_num_row($result). That function will return the number of rows in the result set. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP-DB] determining if a query returns no value

2003-08-14 Thread Gary . Every
Youy could use: if(!$result) { // Don't display } else { echo Title; } You fill in the blanks Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 Pay It Forward mailto:[EMAIL PROTECTED] http://accessingram.com -Original Message- From: Wendall Williams

RE: [PHP-DB] determining if a query returns no value

2003-08-08 Thread Adam Alkins
Quoting [EMAIL PROTECTED]: Youy could use: if(!$result) { // Don't display } else { echo Title; } You fill in the blanks That only checks to see the query failed. A query returning no rows doesn't fail... -- Adam Alkins http://www.rasadam.com -- PHP Database Mailing List