$mql="insert into user(uname,uage,passwd) value('"$uname"','"$uage"','"$passw"')" ;
#瀏覽器回饋的錯誤是syntax error, unexpected T_VARIABLE,錯在何處,正確的寫法是什麼?
天蓬老师2019-04-18 15:04:33
正確語法:
$mql = "INSERT INTO `user` (`uname`, `uage`, `passwd`) VALUES ('{$uname}', {$uage}, '{$passwd}')";
或:
$mql = "INSERT INTO `user` SET `uname` = '{$uname}', `uage` = {$uage}, `passwd` = '{$passwd}'";