Empty query result

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

 



Hi all.

I am querying a database of single information multiple times using a simple 'select' statement. However, whenever the data in the DB is empty or is 0 (zero), then it throws an error. However, I don't want it to throw an error, I just want it to move on to the next query.

This is being shown on a webpage I have. Note that I am using a function for this select statement because I just have to change the identifier that I am looking for - saves space. So I don't use mysql_error() to show my errors, I redirect to a global 'error' page.

Is there a way to get around this "empty set" problem? Yes, I know about using @ to suppress warnings, but it's more than this.

Thanks a bunch,
~Philip

--
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