错误信息??
那个city是字符类型还是整型?

解决方案 »

  1.   

    $query ="select  hms,xx from wl_info_www_goods where ls_city = 411"; 
    $res = mysql_db_query("GPS_GPRS_INFO",$query, $dbh); 
    $err = mysql_error(); 
    if($err){  
    echo "发生错误,请通知我< a [email protected] >< /a >"; 
    echo "$err";

    else 
    echo "<table width=100%>";echo $query;
    while($arr=mysql_fetch_array($res)) 
    {
    print("<tr><td width=80 border=2>$arr[hms]</td><td width=700 border=2>$arr[xx]</td>");
    }
    mysql_close($dbh);
    ?>发生错误,请通知我< a [email protected] >< /a >Unknown column 'ls_city' in 'where clause'select hms,xx from wl_info_www_goods where ls_city = 411
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\virtualhost\web492531\www\info\goodsdl.php on line 54
      

  2.   

    $query="select x1,x2 from wl where city = 411";是这样么??
      

  3.   

    Unknown column 'ls_city' 没有这一列阿
      

  4.   

    恩,表wl_info_www_goods 中没有 'ls_city' 这个字段名
      

  5.   

    有这一列,我在mysql里是有的。