function fetchinfo($rowname,$tablename,$finder,$findervalue) {
if($finder == "0") $result = mysql_query("SELECT $rowname FROM $tablename");
else $result = mysql_query("SELECT $rowname FROM $tablename WHERE `$finder`='$findervalue'");
$row = mysql_fetch_assoc($result);
return $row[$rowname];
Theres代码我不知道那里有什么错误
“mysql_fetch_assoc()期望参数1为资源”
它给出了这个错误:/