Check and then add record

From: Date: Thu, 24 Aug 2000 14:15:46 +0000
Subject: Check and then add record
Groups: php.general 
Request: Send a blank email to php-general+get-13417@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.general (#13417) next »