$mql="insert into user(uname,uage,passwd) value('"$uname"','"$uage"','"$passw"')" ;
Browser The feedback error is syntax error, unexpected T_VARIABLE. What is the error? What is the correct way to write it?
天蓬老师2019-04-18 15:04:33
Correct grammar:
$mql = "INSERT INTO `user` (`uname`, `uage`, `passwd`) VALUES ('{$uname}', {$uage}, '{$passwd}')";
or:
$mql = "INSERT INTO `user` SET `uname` = '{$uname}', `uage` = {$uage}, `passwd` = '{$passwd}'";