![]() |
Error in Mysql
Here is the error
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@yahoo.com, )' at line 2PHP Code:
I already do some research in google but i stil can't find my answers. THanks. |
What do you get when you echo $usrAdd; ?
I think that you haven't added ' ' in the SQL. try this: PHP Code:
check out these: to avoid sql injections to avoid XSS |
im just making a simple code yet for my simple tutorial about it :) and will add another code for the sql injection and xss :)
btw, thnx i will try the code. And i am making a registration system for user. btw this is what i get when i echo the $usrAdd Quote:
|
btw, i have just added your code, and it works :)
Thanks has been added :) But i am still willing to hear from other guyz on why am i getting those errors using that simple code i made ;) thnx, t3st |
The SQL should work if it looked like this:
INSERT INTO users(username, password, email, fullName) VALUES('aldin', '9cdfb439c7876e703e307864c9167a15', 'aldin@yahoo.com', 'aldin moreno') read more here |
| All times are GMT. The time now is 05:37 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0