Re: id

From: Date: Tue, 20 Feb 2001 06:34:26 +0000
Subject: Re: id
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40696@lists.php.net to get a copy of this message
On 2/20/01 1:08 AM this was written: > when poeple sign up to my site, how can i make a code that finds if > there username is already in the database? Um... Search for it. $findit = mysql_query("Select username from usertable where username = '$inputted_username'"); If (mysql_num_rows($findit)) { echo "Error! username exists"; } Or whatever code you want to add there. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

« previous php.general (#40696) next »