嘿家伙,我需要你的帮助。标题中提到的为什么它给我这个错误?
这是我的代码:
if (!$connect){
die("Failed to connect to the database: ".mysql_error());
}
$kies_bd = mysql_select_db("eraenz_db1",$connect);
if (!$kies_bd){
die("failed to choose from BD: ".mysql_error());
}
$query = mysql_query("SELECT ListNumber FROM residential");// or die($myQuery."
".mysql_error());
$result1 = mysql_fetch_assoc($query) or die($myQuery."
".mysql_error());
echo $result1;
if (mysql_num_rows($result1) >10){
$difference = mysql_num_rows($result1) - 10;
$myQuery = mysql_query("SELECT * FROM residential ORDER BY ListNumber LIMIT 10,". $difference) ;