Re: More help with mysql

From: Date: Thu, 27 Feb 2003 11:51:05 +0000
Subject: Re: More help with mysql
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-25953@lists.php.net to get a copy of this message
> Supplied argument is not a valid MySQL result resource. This is absolutely correct because after $result = mysql_query("SELECT * FROM SOME_TABLE") || die(mysql_error()); variable $result contains result of boolean "OR" operation which in your case is TRUE or 1 in order to get valid MySQL result you should use $result = mysql_query("SELECT * FROM SOME_TABLE"); Best regards Sasha sasha@IslandJeep.com

« previous php.db (#25953) next »