See what this does within your code :

    $count = mysql_result($result,0);

Should give you your count (number of users in db).  Btw, don't escape
single quotes in double quotes. In otherwords, the following is fine :

    $string = "I'm a nice string";

See :

    http://zend.com/zend/tut/using-strings.php

Regards,
Philip

On Thu, 2 Aug 2001, Ker Ruben Ramos wrote:

> how do i check if user exist?
> I tried...
>     $result = mysql_query("SELECT count(uname) FROM users WHERE
> uname=\'$username@$domain\'");
>     if(isSet($result))
>         return("Username already exists.<br>\n");
> but still wont work.. :(
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to