Image

Imagecyclotron wrote in Imagephp

help with mysql functions...

...Using if (mysql_db_query ($DBName, $Query, $Link))

(Yes, I know its depreciated)

Problem: my query has two conditions x='$x' AND y='$y'

if either x or y is incorrect (but one is right), mysql_error() does not return an error. I assume its returning "TRUE".

My question: How do I detect "TRUE" but ""?


if (mysql_db_query ($DBName, $Query, $Link)) does not seem to be what I need.