Checking Records in the database and then adding.

From: Date: Thu, 24 Aug 2000 14:14:45 +0000
Subject: Checking Records in the database and then adding.
Groups: php.db 
Request: Send a blank email to php-db+get-2320@lists.php.net to get a copy of this message
Hi PHP Gurus! I have a little problem in database. I want to add a loginID to my mysql database. As login ID is something unique, I want to first check the records in the database and see if the loginID someone is entering to database already exists. If it exisits, a message should be given else a record should be added. If ASP we do it as below. If Rs.Eof Then AddNew Else Response.Write Error End If Now this is what I want in PHP. Please help. Thanks in advance!

« previous php.db (#2320) next »