$rows = mssql_fetch_array($res,MSQLNUM))
=>
$rows = mssql_fetch_array($res,MSSQL_NUM))

解决方案 »

  1.   

    $channel_pcode改为
    $rows['channel_pcode']
      

  2.   

    看错了,改成这样看看
     while ($row = mysql_fetch_array($res)) {
    echo "update xcms_channels set chl_chcode = '".$row['chl_chcode']"' where chl_code = '$channel_pcode'" ;$DB_naps->query("update xcms_channels set chl_chcode = '".$row['chl_chcode']"' where chl_code = '$channel_pcode'",$link); 
    }
      

  3.   

    $DB_naps->query("update xcms_channels set chl_chcode = '$row[0]' where chl_code = '$channel_pcode'",$link);
    =>
    $DB_naps->query("update xcms_channels set chl_chcode = '" . $row[0] ."' where chl_code = '$channel_pcode'",$link);
      

  4.   


    while($rows = mssql_fetch_array($res)){