note 49206 deleted from security.database.storage by tularis

From: Date: Thu, 20 Jan 2005 09:45:25 +0000
Subject: note 49206 deleted from security.database.storage by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83656@lists.php.net to get a copy of this message
Note Submitter: arno dot esterhuizen at gmail dot com Reason: spam ---- In the code cited in the manual, wouldn't it be more secure to say if (pg_num_rows($result) == 1) { echo 'Welcome, $username!'; } else { echo 'Authentication failed for $username.'; } This way the code checks for only one valid user. Or is this needlessly pedantic? Let me know. Arno

« previous php.notes (#83656) next »