echo $t1, $t2, $t3, $t4, $uid;
$querytotal = "update customer_det set `t1` = $t1, `t2` = $t2, `t3` = $t3, `t4` = $t4 WHERE `id` = $uid ";
echo $querytotal;
所以我回显了变量,我看到它们很好。当我去执行更新语句并在之后回显该语句时,它会删除所有变量。我不知道这怎么可能。t2
Mysql_error: ...对于在第 1 行的 ' = , t3
= , t4
= WHERE ='附近使用正确的语法id
。所以它在 t1 上跳过错误,但在 t2 时踢出?我在这里缺少什么吗?
这是运行前的回显查询update customer_det set
t1 = '215',
t2 = '240',
t3 = '265',
t4 = '300' WHERE
id= '273'
在update customer_det set
t1 = '',
t2 = '',
t3 = '',
t4 = '' WHERE
id之后= ''