FATAL ERROR syntax error, unexpected T_STRING, expecting ',' or ';' on line number 32

Discussion about any web related scripting languages like JavaScript, ASP, and PHP.
Post Reply
kariyacd
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Thu Jul 16, 2015 8:00 am

FATAL ERROR syntax error, unexpected T_STRING, expecting ',' or ';' on line number 32

Post by kariyacd » Thu Jul 16, 2015 8:23 am

Hello to all
I dont know whats wrong with following codes.

---- Code ----

Code: Select all

<?php 
include "includes/header.php";

/*if(isset($_SESSION['matses_userid']))
{ ?>
<script>
window.location:"profile.php";
</script>

<? }*/
if(isset($_REQUEST['submit']) || ($_REQUEST['acc_id']))
{
if($_REQUEST['submit'])
{
$profileid = $_REQUEST['email'];
$password = $_REQUEST['pass'];

				$query5= mysql_query("select * from  memberregister where (profileid='$profileid' or email='$profileid') and password='$password' and activestatus='1'");
				$query= mysql_query("select * from  memberregister where (profileid='$profileid' or email='$profileid') and password='$password' ");

$count5=mysql_num_rows($query5);
				
				$count=mysql_num_rows($query);
				
				$row=mysql_fetch_array($query);
				$userid=$row['id'];
				$email=$row['email'];
				$dlt_status=$row['activestatus'];
				
				if ($dlt_status == 2)
					{ 
					echo "<meta http-equiv=\"refresh\" content=\"0; url=login.php?dltac\">";
					}
				
				$query1     = mysql_query("select * from memberprofile where email='$email'");
				$count1     = mysql_num_rows($query1);
				$row1=mysql_fetch_array($query1);
				$userid1=$row['userid'];
				$query2     = mysql_query("select * from  partnerprofile where email='$email' and userid='$userid'");
				$count2     = mysql_num_rows($query2);
				$row1=mysql_fetch_array($query2);
				$userid2=$row['userid'];
				
				$updatechatuser=mysql_query("update accept set chat_status=0 where userid='$userid' or partnerid='$userid'");
				
				//echo $count2;
				//echo $row['activestatus']; exit; 
				
				if($row['activestatus']=='1')
				{
				echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?aerr\">";
				}
				else if ($row['activestatus']=='0')
				{
				echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?lerr\">";
				}
				if($count =='0')
					{
echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?lerr\">";
						//header("location:login.php?err");
					}
				else if($count5 > 0)
					{
					echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?aerr\">";
						//header("location:login.php?adminmsg");
					}
				
				else if($count1=='0')
					{
						$use_id = base64_encode($userid);
						/*$_SESSION['qujarati_userid']=$userid;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						$_SESSION['matses_userid']=$userid;
						
						echo "<meta http-equiv=\"refresh\" content=\"0;url=register1.php?uid=$use_id\">";
						//header("location:register1.php");
					}
				else if($count2 =='0' and $dlt_status != 2)
					{
						$use_id = base64_encode($userid);
						$_SESSION['matses_userid']=$userid;
						/*$_SESSION['qujarati_userid']=$userid;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						echo "<meta http-equiv=\"refresh\" content=\"0;url=partner_profile.php?uid=$use_id\">";
						//header("location:mypartnerprofile.php");
					}
				
				else
					{ 
					
						if ($dlt_status != 2)
							{
							
						$query1     = mysql_query("select * from  memberprofile where email='$email'");
						$count1     = mysql_num_rows($query1);
						$row1=mysql_fetch_array($query1);
						$userid=$row1['userid'];
						$_SESSION['matses_userid']=$userid;  
						/* $_SESSION['qujarati_userid']=$userid;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						$lattime=date('d-m-y');
						 $res=mysql_query("select * from upgrademembers where userid='$userid'");
					     $row['expiredate'];
						if((strtotime($row['expiredate']))<(strtotime(date('Y-m-d'))))
						{
						mysql_query("UPDATE memberregister set onlinestatus='1',lastintime=now() WHERE id = '$userid'");
						mysql_query("UPDATE memberprofile set onlinestatus='1',lastintime=now() WHERE userid = '$userid'");
						}
						else
						{
						}
						//header("Location:myshaadi.php");
						
						$res1=mysql_query("select * from upgrademembers where userid='$userid'");
					    $row1['expiredate'];
						if(strtotime($row1['expiredate'])>strtotime(date('Y-m-d')))	
						{
							$res2=mysql_query("update memberregister set paystatus='0',member='0' where id='$userid'");
							$res3=mysql_query("update upgrademembers set paystatus='0',member='0' where userid='$userid'");
						}
						echo "<meta http-equiv=\"refresh\" content=\"0;url=profile.php?memerr\">";
						//header("Location:profile.php");
						
						
					}
					}
}
else if($_REQUEST['acc_id'])
{

$acc_id = base64_decode($_REQUEST['acc_id']);
$res=mysql_query("select * from memberregister where activestatus='0' and id='$acc_id'");
$count=mysql_num_rows($res);







if($count==0)
{
mysql_query("update memberregister set activestatus='0' where id='$acc_id'");
$query5= mysql_query("select * from  memberregister where id='$acc_id'");

$sel_qry = mysql_fetch_array($query5);

$email = $sel_qry['email'];


 $name=$sel_qry['name'];
 $to = $sel_qry['email'];
$subject = "Account Activated Successfully";

 $message  = "<table width='500' cellpadding='0' cellspacing='0' border='0' bgcolor='#E58B01' style='border:solid 10px #E58B01;'>
						<tr bgcolor='#FFFFFF' height='100'>
						<td><img src='$mail_url/images/$sitelogo'  width='250' height='100' border='0' /></td>
						</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr bgcolor='#FFFFFF' height='30'>
						<td valign='top' style='font-family:Arial; font-size:12px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'><b>Dear $name</b></td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Your Account Activated successfully..</td>
						</tr>
						
						<tr bgcolor='#FFFFFF'>
						<td align='left' style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'> Regards,<br>
						".$siteteam."<br>
						<font><a href='$mail_url/index.php' style='font-family:Arial; font-size:11px; font-weight:bold; text-decoration:none; color:#0c568b;'>$sitename</a></font></td>
						
						</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr height='40'>
						<td align='right' style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;background-color: #E58B01;
						color: #000000;'>&copy; Copyright " .date("Y")."&nbsp;"."<a href='$mail_url/index.php' style='font-family:Arial; font-size:11px; font-weight:bold; text-decoration:none; color:#0c568b;'>$sitename</a>."."</td>
						</tr>
						</table>";
		 $frm = "marian@christiansmatrimony.in";

	 ini_set("SMTP","bh-28.webhostbox.net");
$headers= "From:$frm <$frm>" . "\r\n";
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-type:text/html;charset=iso-8859-1'. "\r\n";
if(@mail($to,$subject,$message,$headers))
{
$acc_succ="succacc";
}

else
{

}

















$query= mysql_query("select * from  memberregister where id='$acc_id'");

$query1     = mysql_query("select * from memberprofile where email='$email'");
				$count1     = mysql_num_rows($query1);
				$row1=mysql_fetch_array($query1);
				$userid1=$row['userid'];
				$query2     = mysql_query("select * from  partnerprofile where email='$email' and userid='$acc_id'");
				$count2     = mysql_num_rows($query2);
				$row1=mysql_fetch_array($query2);
				$userid2=$row['userid'];
				
				if($count1=='0')
					{
						$use_id = base64_encode($acc_id);
						$_SESSION['matses_userid']=$acc_id;
						/*$_SESSION['qujarati_userid']=$acc_id;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						echo "<meta http-equiv=\"refresh\" content=\"0;url=register1.php?uid=$use_id\">";
						//header("location:register1.php");
					}
				else if($count2 =='0'  and $dlt_status != 2)
					{
						$use_id = base64_encode($acc_id);
						$_SESSION['matses_userid']=$acc_id;
						/*$_SESSION['qujarati_userid']=$acc_id;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						echo "<meta http-equiv=\"refresh\" content=\"0;url=partner_profile.php?uid=$use_id&acs=$acc_succ\">";
						//header("location:mypartnerprofile.php");
					}
				
				else
					{ 
						$query1 = mysql_query("select * from  memberprofile where userid='$acc_id'");
						$count1 = mysql_num_rows($query1);
						$row1=mysql_fetch_array($query1);
						$userid=$row1['userid'];
						$_SESSION['matses_userid']=$userid;   
						/*$_SESSION['qujarati_userid']=$userid;
						$_SESSION['matses_userid']=$_SESSION['qujarati_userid'];*/
						$lattime=date('d-m-y');
						mysql_query("UPDATE memberregister set onlinestatus='1',lastintime=now() WHERE id = '$userid'");
						mysql_query("UPDATE memberprofile set onlinestatus='1',lastintime=now() WHERE userid = '$userid'");
						//header("Location:myshaadi.php");
						
						
						
						
						echo "<meta http-equiv=\"refresh\" content=\"0;url=profile.php?acs=$acc_succ\">";
						//header("Location:profile.php");
					}

}
}
else if($count==1)
{
header("Location:login.php");
}
else
{
}				
}
?>
<script type="text/javascript">
function validate()
{ 
	if(document.form.email.value=="")
	{
	alert('Please Enter the Email (or) Member ID');
	document.form.email.focus();
	return false;
	}
	if(document.form.pass.value=="")
	{
	alert('Please Enter the Password');
	document.form.pass.focus();
	return false;
	}
}
</script>
<div class="inner_page_div group">
<!-- start left section -->
<div class="leftP">
   <div class="headbg">
   <div class="headbgR"><div class="headbgL">Login</div></div>
   </div>
   <?php if(isset($_REQUEST['succ'])) { ?>
    <div style="width:700px; padding-top:5px; color:#006600; text-align:center;">The Username and password has been sent to your mail id... </div>
	<?php } ?>
	
	 <?php if(isset($_REQUEST['aerr'])) { ?>
    <div style="width:700px; padding-top:5px; color:#FF0000; text-align:center;">Please Activate your Account... </div>
	<?php } ?>
    <?php if(isset($_REQUEST['dltac'])) { ?>
    <div style="width:700px; padding-top:5px; color:#FF0000; text-align:center;">Your Account is Deleted</div>
	<?php } ?>
	
	 <?php if(isset($_REQUEST['lerr'])) { ?>
    <div style="width:700px; padding-top:5px; color:#FF0000; text-align:center;">Please Enter the correct username and password... </div>
	<?php } ?>
	
	
	<div class="midCorn">
	
    <div><img src="images/topCorn.gif" alt="" /></div>
    <div class="regCont">
	 <div><img src="images/corGrentop.gif" alt="" /></div>
	 <form name="form" action="" method="post">
    <div class="corGrenMid">
	
    <div class="greenCont" align="center"> 
	
	<div style="width:200px; height:40px; padding-left:40px; text-align:left; float:left;">Member ID / E-mail</div>
	<div style="width:200px; float:left; text-align:left;"> <input type="text" name="email" id="email"  style="width:200px;"></div>
	<div style="clear:both;"></div>
	
	<!--<a href="JavaScript:void(0);" onClick="window.open('login_check.php?login_face','mywindow','width=800,height=500,scrollbars=no,resizable=no,top=100,left=100')" title="Login with facebook">FB Login</a>-->
	
	<div style="width:200px; height:30px; padding-left:40px; text-align:left; float:left;">Password</div>
	<div style="width:200px; float:left; text-align:left;">  <input type="password" name="pass"  style="width:200px;"></div>
	<div style="clear:both;"></div>
	
	<div style="width:200px; height:20px; padding-left:40px; text-align:left; float:left;"></div>
	<div style="width:200px; float:left; text-align:left;"  class="subBtn"> 
     <input type="submit" value="Submit" name="submit" onClick="return validate();" /></div>
	<div style="clear:both;"></div>
	
	<div style="width:200px; height:40px; padding-left:40px; text-align:left; float:left;"></div>
	<div style="width:200px; float:left; text-align:left; padding-left:10px;"><a href="forgot_pass.php" style="font-weight:bold; color:#000000;">Forgot Password?</a> / <a href="register.php" style="font-weight:bold; color:#000000;">New Register</a></div>
	<div style="clear:both;"></div>
	
	
 
	 
     </div></div>
	 </form>
	  <div class="corGrenBot"><img src="images/corGrenBot.gif" alt="" /></div>
         </div>
    <div><img src="images/botCorn.gif" alt="" /></div>
    </div>   
</div>
<!-- end left section -->
<!-- start right section -->
<div class="rigP">
<div><img src="images/rigTp.gif" alt="" /></div>
<div class="rigbox">
<div class="redHead">Advantage</div>
<ul>

<li>* Register and create your profile</li>
<li>* Trusted Website</li>

<li>* Better contact options</li>
<li>* Contact  members and get to know them</li>
</ul>
</div>
<div><img src="images/rigBp.gif" alt="" /></div>
</div>
<!-- end right section -->
<div class="clear"></div>
<div class="botImg">
<!--<img src="images/phImg.gif" alt="" />--> <img src="images/ccaImg.gif" alt="" /> <!--<img src="images/icicImg.gif" alt="" />--> <img src="images/carImg.gif" alt="" />
</div>
</div>

<?php include "includes/footer_inner.php"; ?>

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3441
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: FATAL ERROR syntax error, unexpected T_STRING, expecting ',' or ';' on line number 32

Post by Albert Wiersch » Thu Jul 16, 2015 12:05 pm

Is this line 32?

Code: Select all

echo "<meta http-equiv=\"refresh\" content=\"0; url=login.php?dltac\">";
I don't see anything wrong with it and it passed a PHP syntax check in CSE HTML Validator. Perhaps a different document or different version of the file is causing the problem? Make sure it's updated (like upload the file to the server if needed).
Image
Albert Wiersch

Post Reply