Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

INSERT query for user signup not working #2

Open
colincalnan opened this issue Mar 12, 2014 · 0 comments
Open

INSERT query for user signup not working #2

colincalnan opened this issue Mar 12, 2014 · 0 comments

Comments

@colincalnan
Copy link

index.php line 46, Chapter 9, Recipe 7. Seems like the single quotes on the 'user' table do not work. Replaced with backticks and it worked

$sql = "INSERT INTO `user` SET `name`='{$name}',`email`='{$email}',`password`='{$password}',`phone_number`='{$phone_number}',`sid`='{$sid}',`token`='{$token}',`status`=1";
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant