Warning: mysql_fetch_array(): supplied argument is not a valid MySQL......
2011-09-01 15:55
435 查看
$sql="select * form message order by id desc";
$query=mysql_query($sql);
改为:
$sql="select * form message order by id desc";
$query=mysql_query($sql);
if (!$query) echo "SQL错误:".mysql_error();
就可以运行时显示具体错误的原因。
$query=mysql_query($sql);
改为:
$sql="select * form message order by id desc";
$query=mysql_query($sql);
if (!$query) echo "SQL错误:".mysql_error();
就可以运行时显示具体错误的原因。
相关文章推荐
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result reso
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
- Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
- Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result的解决方法
- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
- mysql_fetch_field(): supplied argument is not a valid MySQL result resource in
- mysql_fetch_row(): supplied argument is not a valid MySQL result resource的问题解决方案
- mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource 错误的解决办法
- PHP学习 fwrite:Warning: fwrite(): supplied argument is not avalid stream resource in
- Warning: readdir(): supplied argument is not a valid Directory resource in /yjdata/www/www/admin/tem
- php错误 mysql_query():supplied argument is not a valid MySQL result resource
- xamarin studio 更新后编译报错 The supplied byte array is not a valid .ico file
- 修复 Warning: Array_merge() [function.array-merge]: Argument #1 Is Not An Array... 错误
- mysql_connect连接两次,释放两次,出现Warning: mysql_close(): 13 is not a valid MySQL-Link resource
- Warning: array_merge() [function.array-merge]: Argument #2 is not an array in e\\class\\functions.php on line 2193
- PHP出现fwrite(): supplied argument is not avalid stream resource in...
- 启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' ”
- warning:reset()[function.reset]:passed variable is not an array or object
- txt数据导入mysql错误Invalid Date: ' ' is not a valid datetime(或int value等)
- Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in E:\\PHP\\wamp\\www\\lsr\\lsr.php on line 42