这个函数正确吗?它不断返回:解析错误:语法错误,意外';',在第 301 行的 C:\Program Files (x86)\Apache Group\Apache2\htdocs\test\include\class.mysqltools.php 中期待 T_FUNCTION
301 是最后一行...任何帮助表示赞赏,谢谢!
function DisplayA($query, $rowname1, $rowname2) {
$result = mysql_query($query);
$buffer = $buffer .="<table>";
while($row = mysql_fetch_array($result)){
$buffer = $buffer .="<tr><td>" . $row[$rowname1] . "</td><td>" . $row[$rowname2] . "</td></tr>";
}
$buffer = $buffer .="</table>";
return $buffer;
}