DLM> I have a field userid which the user fills in at registration. Before DLM> entering the data into the database, I want to check if the userid exists in DLM> the database.
You have to SELECT that user from the table you store your users: SELECT userid, name , etc FROM table WHERE userid='$your_id' if *_num_rows() > 0 then he is already in, otherwise you can add him: INSERT ..... INTO table .... Enjoy! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php