错误1)mysql_fetch_assoc() expects parameter 1 to be resource, boolean given on line 10
错误2)<?php (LINE 1)
$sitename = "www.xxx.com"; (LINE 2)
$link = mysql_connect("ip", "root", "password"); (LINE 3)
$db_selected = mysql_select_db('database', $link); (LINE 4)
mysql_query("SET NAMES utf8"); (LINE 5)
function fetchinfo($rowname,$tablename,$finder,$findervalue) { (LINE 7)
if($finder == "1") $result = mysql_query("SELECT $rowname FROM $tablename"); (LINE 8)
else $result = mysql_query("SELECT $rowname FROM $tablename WHERE `$finder`='$findervalue'"); (LINE 9)
$row = mysql_fetch_assoc($result); (LINE 10)
return $row[$rowname]; (LINE 11)
}
?>
。
-(IBAction)startDiscover:(id)sender;
请帮忙!谢谢!