一个简单的select 急死我了 错误信息??那个city是字符类型还是整型? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $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 = 411Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\virtualhost\web492531\www\info\goodsdl.php on line 54 $query="select x1,x2 from wl where city = 411";是这样么?? Unknown column 'ls_city' 没有这一列阿 恩,表wl_info_www_goods 中没有 'ls_city' 这个字段名 有这一列,我在mysql里是有的。 急急急,关于正则表达式的问题 咨询,你们说说第三方是怎么监测到用户访问的标题的? 求一个字符串比较程序!!! ftp上传网站程序没有权限 PHP的服务器推和AJAX请求数据 急急急 高手进 汉字显示成问号 如何实现web文件和mysql数据库分开后的连接? php提交表单的问题!急 关于php远程连接ORACLE的问题 求救:这个效果谁能实现?(地图查询) ** 新手疑惑: 增加了框架, 主页无法执行 onload ??? *** 在线等 select "str"+0 from tablename 为何结果不是str0,而是0,怎样才能用得到str0
$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