On Saturday, March 30, 2002, at 06:29 PM, Alberto Wagner wrote:
> $Sql_Query_Login = Mysql_Query("SELECT Nome FROM users WHERE User = > 'Anyone'") > > There isn't a user if name Anyone... > > Why > > If (!$Sql_Query_Login) { > Echo "Ninguem"; > } > > Is returning False? The query is succeeding, it's just returning an empty set. Try if (!$Sql_Query_Login) { echo "query failed"; } else { if ($sql_Query_Login == "") { echo "empty result set"; } else { // do what you want with the results } } Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php