RE: determining if a query returns no value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux