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

From: Date: Thu, 07 Aug 2003 18:28:40 +0000
Subject: RE: [PHP-DB] determining if a query returns no value
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29750@lists.php.net to get a copy of this message
Quoting Gary.Every@ingramentertainment.com: > 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

« previous php.db (#29750) next »