Thread: Sysntx error
View Single Post
  #1 (permalink)  
Old 11-03-09, 02:47 AM
thamara thamara is offline
New Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sysntx error

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";
    
    }
    }
    } 

Last edited by Nico; 11-07-09 at 05:04 AM.
Reply With Quote