Dear friends i need your help I'm new in php
when i compile this code gives me an error saying that
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\EASchools.Com\Tanzania\displayClas s.php on line 60
the code that gives that error is
PHP Code:
function display($criteria,$ID)
{
$this->criteria = $criteria;
$this->ID = $ID;
if($criteria == '1')
{
$forms = mysql_query("select * from tzdetails where documentType = '$criteria' and institutionID = '$this->ID' and displayStatus = 'yes'")
or die ("no recods".mysql_error());
if (mysql_num_rows($forms) >0)
{
echo '<table align="center" >
<tr><td><h3> Applcation forms download</h3></td></tr>
<tr id = "tr_header"align="left">
<td>Form Name </td>
<td> Download</td>
</tr>';
while($data_found = @mysql_fetch_array($forms))
{
echo '<tr id= "tr" align="left">
<td >'.$data_found['discription'] .'</td>
<td><a href="http://www.hotscripts.com/forums/Admin/Tzadmin/Tzdocuments/'.$data_found['institutionID'].'/'.trim($data_found['documentLink']).'">Download</a>
</td></tr>';
}
echo '</table>';
}
else
{
echo "Juma";
}
}
}