Username/Password retrieval

From: Date: Fri, 12 Jan 2001 21:46:38 +0000
Subject: Username/Password retrieval
Groups: php.db 
Request: Send a blank email to php-db+get-5833@lists.php.net to get a copy of this message
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

« previous php.db (#5833) next »