help with mysql functions...
Date: 06/05/05
(PHP Community) Keywords: mysql, sql
...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.
Source: http://www.livejournal.com/community/php/304716.html