发送页:<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 

解决方案 »

  1.   

    $db->query("UPDATE {$_pre}company SET `px`='$px' WHERE uid='$uid'");
      

  2.   

    mysql_select_db(.................);
    mysql_query("SET sql_mode=''");//运行一次这句
      

  3.   

    UPDATE `qb_hy_company` SET `px`='' WHERE uid=''   缺少2个点
      

  4.   

    mysql 表名 平时习惯 我都不用点的  ~~~
      

  5.   

    <input name="listdb[{$rs[uid]}]" type="text" value="$rs[px]" />是不是这里不对  我数据库里的字段是px
      

  6.   

    $action 哪里来的? 改为:$_GET['action'] 
    $px 又是什么东西?<input name="listdb[{$rs[uid]}]" type="text" value="<?php echo $rs[px];?>" />
      

  7.   

    qb_hy_company` SET px`=   有没看到 ` 这个符号的原因