i don't know if this is the most efficient way, but it'll work:

$query = "SELECT  username FROM users WHERE username =
> '{$_POST['strUserName']}'";
$query2 = "SELECT Ngfnummer FROM lid WHERE Ngfnummer =
'{$_POST['strNgfnummer']}'";

if ( mysql_num_rows( mysql_query( $query ) ) == 0 && mysql_num_rows(
mysql_query( $query2 ) ) == 0 )


tommy

"Wmb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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+++++++++++++++++
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to