Registration Form check PostgreSQL is username is already taken
Posted
by MrEnder
on Stack Overflow
See other posts from Stack Overflow
or by MrEnder
Published on 2010-03-23T00:21:36Z
Indexed on
2010/03/23
2:31 UTC
Read the original article
Hit count: 387
Hey I'm really new to PHP and PostgreSQP or any database in that matter. So I'm at a loss how to do this.
I need an if statement that says.
If(the username user just typed in is already in database) {
my code here
}
the variable the username that the user just typed in is $userNameSignup
how would I do that with PHP for PostgreSQL?
also how might I redirect people to a new page once they have completed the form properly?
Thanks Shelby
© Stack Overflow or respective owner