HOME > PHP > PHP Forum > ปัญหา 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 \wfht (name,email,mobile,password) values(asasd,asdasd,asdasdas,\ at line 1
ปัญหา 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 \wfht (name,email,mobile,password) values(asasd,asdasd,asdasdas,\ at line 1
แก้ยังไงครับพอกรอกข้อมูลใส่แล้วมันขึ้นแบบนี้ 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 ''wfht' (name,email,mobile,password) values('asasd','asdasd','asdasdas','' at line 1
Code (PHP)
<?php
include 'connect.php';
if(isset($_POST['submit'])){
$name=$_POST['name'];
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$password=$_POST['password'];