无法执行mysql查询

时间:2017-04-30 00:19:17

标签: php mysql

我正在尝试执行这个PHP代码:

<?php
require_once('connect.php');

$nm=$_GET['nm'];
$em=$_GET['em'];
$pa=$_GET['pa'];
$jb=$_GET['jb'];
$jbd=$_GET['jbd'];
$sk=$_GET['sk'];
$ds=$_GET['ds'];



$sql = " UPDATE fos_user SET  nom = ? , email = ? , pays = ? ,job = ?,  
addressjob = ?, skills = ? , description = ?  WHERE id='173';";


if (mysqli_query($conn, $sql)) {
echo "success";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}

mysqli_close($conn);
?>

但我一直收到这个错误:

  

错误:UPDATE fos_user SET nom =? ,电子邮件=? ,支付=? ,job = ?, addressjob = ?,技能=? ,描述=? WHERE id ='173';   ''附近的语法错误? ,电子邮件=? ,支付=? ,job = ?, addressjob = ?,技能=? ,description =?'第1行

0 个答案:

没有答案