Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

[PHP-DB] Username/Password retrieval From: Randy Johnson (randy <email protected>)
Date: 01/12/01

Is the following statement the best way to handle a username/password
validation
$username and $password are form fields

$result="";
$result= mysql_query (" Select password from ACCT_TBLE where (ACCT_NUM =
'$username' and PASSWORD='$password')");

Now my question is will result be equal to "" if the query statement doesn't
return any data?

thanks

randy

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>