Re: Re: HELP NEEDED!

From: Date: Sun, 14 Jul 2002 01:26:10 +0000
Subject: Re: Re: HELP NEEDED!
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20533@lists.php.net to get a copy of this message
> Use mysql_result or mysql_fetch_array to get your results. > > Example: > $userName = mysql_reqult($result,0); Just use mysql_num_rows($result) and count the amount of rows selected. if(mysql_num_rows($result) == '0') { do_user_doesnt_exist_stuff(); } else { do_user_exists_stuff(); } -------------- Adam Alkins http://www.rasadam.com --------------

« previous php.db (#20533) next »