This is a discussion on "PHP Login Register help" within the PHP Forum section. This forum, and the thread "PHP Login Register help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP Login Register help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
PHP Login Register help
Hey
I'm having an issue that I can't find the answer to on google. Im creating a login and register system, only it is by invitation only so the person has to enter their details which get checked with the details on the database before they are allowed to create an account. I am now writing the bit that inserts the password, heres my code:
Thanks Last edited by atlaskid; Nov 9th, 2006 at 16:20. |
|
|
|
#2
|
|||
|
|||
|
Re: PHP Login Register help
You have set-up your sql string in one variable but used a different variable in your execution.
|
|
#3
|
|||
|
|||
|
Re: PHP Login Register help
Hey, thanks for pointing that out but I changed the for the purpose of this post, it wouldnt work with it the way itis now.
|
|
#4
|
|||
|
|||
|
Re: PHP Login Register help
You also have single quotes around what are supposed to be variables thereby turning them into string constants.
|
|
#5
|
|||
|
|||
|
Re: PHP Login Register help
I think the single quotes are fine where you have them. Your main string is double quoted which is fine. However, the INSERT inserts a new row which isn't what you want to do, I don't think - you're looking for an UPDATE to change the password in an existing row or a REPLACE to replace a complete row (but the syntax of that would be different).
|
|
#6
|
||||
|
||||
|
Re: PHP Login Register help
Use UPDATE.
|
|
#7
|
|||
|
|||
|
Re: PHP Login Register help
Thanks!!
|
![]() |
| Tags |
| login, php, register |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Login/register | alexgeek | PHP Forum | 63 | Jul 31st, 2007 11:42 |
| some type of member login/register system | Lucid. | Web Page Design | 22 | Feb 3rd, 2006 18:19 |