Current location: Hot Scripts Forums » General Community » Script Requests » Sysntx error

Sysntx error

 
Prev Previous Post   Next Post Next
  #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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ and MSSQL tutorials? scott2500uk C/C++ 8 05-11-09 03:33 AM
[SOLVED] 500 Internal Server Error - Please help Dawn Perl 15 07-08-08 12:08 PM
Syntax Error Nikas Database 4 05-15-08 11:48 AM
server error in ' / ' application vikkygupta2005 ASP.NET 1 11-10-06 07:07 AM
ASP upload prob minority ASP 1 06-27-05 09:35 AM


All times are GMT -5. The time now is 04:41 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.