以下错误消息是什么意思?
Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 3 (or the query data is unbuffered) in \\nawinfs03\home\users\web\b1878\rh.slmarble\php\getproductDB.php on line 6
or die('
代码:
if (!mysql_data_seek($results, $num)) {
echo "<h1 style='padding:10%'>Coming soon!</h1>";
}
答案 0 :(得分:4)
我认为你的查询不会返回任何内容。从PHP手册:
..如果结果集为空 (mysql_num_rows()== 0),寻求0 将失败并带有E_WARNING ..