in reply to Re: Re: Re: User Existance?
in thread User Existance?

why am i getting an error when trying to run this?
if getpwnam($username) { $message = $message.'<p>The Chosen Username Already Exists.</p>'; $found_err = 1; }

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: User Existance?
by The Mad Hatter (Priest) on May 17, 2003 at 20:40 UTC
    You need parentheses around the conditional statement for the if...
    if (getpwnam($username)) { $message = $message.'<p>The Chosen Username Already Exists.</p>'; $found_err = 1; }