0

Mysql error

Why I get this error and How to fix it? Error INSERT INTO form (name, email, gender) VALUES (Mostafa, info@mostafa.com, male) 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 '@mostafa.com, male)' at line 17> https://code.sololearn.com/weNt32dVRcr5/?ref=app

3rd Sep 2020, 4:48 AM
Mohammad Sajjad
Mohammad Sajjad - avatar
2 Respostas
+ 4
$sql = "INSERT INTO form (name, email, gender) VALUES ('$name', '$email', '$gender')";
3rd Sep 2020, 5:01 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
🔫 Rick Grimes fixed! Tnx. But I was tried with " Why didn't answer?
3rd Sep 2020, 5:06 AM
Mohammad Sajjad
Mohammad Sajjad - avatar