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


Sysntx error

Reply
  #1 (permalink)  
Old 11-03-09, 01: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 04:04 AM.
Reply With Quote
  #2 (permalink)  
Old 11-03-09, 03:16 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Use braces: '{$this->ID}'
Reply With Quote
Reply

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 02:33 AM
[SOLVED] 500 Internal Server Error - Please help Dawn Perl 15 07-08-08 11:08 AM
Syntax Error Nikas Database 4 05-15-08 10:48 AM
server error in ' / ' application vikkygupta2005 ASP.NET 1 11-10-06 06:07 AM
ASP upload prob minority ASP 1 06-27-05 08:35 AM


All times are GMT -5. The time now is 09:34 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.