Is this function correct? it keeps returning: Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\Program Files (x86)\Apache Group\Apache2\htdocs\test\include\class.mysqltools.php on line 301
301 is the last line...any help is appreciated, thank you!
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;
}