$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?
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}'";
Correct grammar:
or: