发送页:<form name="form_work" method="post" action="index.php?lfj=$lfj&dirname=$dirname&file=$file&job=work&action=px"><input name="listdb[{$rs[uid]}]" type="text" value="$rs[px]" /><input type="submit" name="Submit" value="修改" />接受页:elseif($action=="px")
{
@extract($_POST);
$db->query("UPDATE {$_pre}company` SET px`='$px' WHERE uid='$uid'"); refreshto($FROMURL,"修改成功1111111111111");
}错误提示:数据库连接出错:UPDATE qb_hy_company` SET px`='' WHERE uid=''You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='' WHERE uid=''' at line 1
1064
{
@extract($_POST);
$db->query("UPDATE {$_pre}company` SET px`='$px' WHERE uid='$uid'"); refreshto($FROMURL,"修改成功1111111111111");
}错误提示:数据库连接出错:UPDATE qb_hy_company` SET px`='' WHERE uid=''You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='' WHERE uid=''' at line 1
1064
mysql_query("SET sql_mode=''");//运行一次这句
$px 又是什么东西?<input name="listdb[{$rs[uid]}]" type="text" value="<?php echo $rs[px];?>" />