Are 2 mysql_query statements psble?

From: Date: Fri, 10 Jan 2003 23:13:28 +0000
Subject: Are 2 mysql_query statements psble?
Groups: php.general 
Request: Send a blank email to php-general+get-131203@lists.php.net to get a copy of this message
The code below returns : "Parse error: parse error, unexpected T_BOOLEAN_AND "..... so must assume it's not possible, but anybody out there who's able to give me a suggestion how to get this going. 2 different tables have to be checked for correct input from form. (Would even want to do a third....) Thanks, Martin QUOTE+++++++++++++++++ if($dbConn) $query = mysql_query("SELECT count(*) FROM users WHERE username = '{$_POST['strUserName']}'"); $query2 = mysql_query("SELECT count(*) FROM lid WHERE Ngfnummer = '{$_POST['strNgfnummer']}'"); if(mysql_result($query, 0, 0) == 0) && (mysql_result($query2, 0, 0) == 0) { UNQUOTE+++++++++++++++++

« previous php.general (#131203) next »