做一个FOR循环.再CHA 入
$query="insert into vote (xxxx,xxxx) Values ('$xxx','$xxx')";
$result=mysql_query($query);

解决方案 »

  1.   

    $updateSQL = sprintf("UPDATE news_info SET news_title=%s, news_data=%s, news_time=%s, flag=%s, news_editor=%s WHERE id=%s",
                           GetSQLValueString($_POST['news_title'], "text"),
                           GetSQLValueString($_POST['news_data'], "text"),
                           GetSQLValueString($_POST['news_time'], "text"),
                           GetSQLValueString($_POST['news_flag'], "int"),
                           GetSQLValueString($_POST['news_editor'], "text"),
                           GetSQLValueString($_POST['news_id'], "int"));  mysql_select_db($database_name, $connect);
      $Result1 = mysql_query($updateSQL, $connect) or die("数据更新失败!");
    ------------------------------------------------------------------------
    是不是指的这个意思。
      

  2.   

    ASP 中的 rs.addnew...rs.update
    是对象的方法而你给出的是sql语句rs对象在内部同样使用sql语句
    如果你习惯asp的这种写法,可以自己定义一个数据库类来解决
      

  3.   

    sql中用,alart table 来实现可以查查联机帮助那里讲得比较清楚
      

  4.   

    xleon的意思是这样,可是不能实现功能。 GetSQLValueString函数是些什么东西????/
      

  5.   

    xleon的意思可的格式可以这样理解吗?
    $updateSQL = sprintf("UPDATE news_info SET news_title=%s",
                           $_POST['news_title'], "text");
    $_POST['news_title']为传递过来的参数,"text"为类型.不过这样同样会出错。