Jump to content

T String Error please help


topflight

Recommended Posts

I am receiving the following error.

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\fileloa.php on line 25

 

This is my code

 

<?php
if(!$_COOKIE['login'])
{
header("Location:login.php");
}
?>

<?php
if(isset($_GET['login'])){
include 'db.php';


$sql = "SELECT status FROM pilots WHERE login = '{$_GET['login']}'";
$query = mysql_query($sql) or die("Problem with the query: $sql<br>" . mysql_error()); 
$query = mysql_query($sql); 
  if ($query){
  $lrows = mysql_num_rows($query);
  if ($lrows == 3){
echo'You Are Already on L.O.A';} 
   }

  if(isset($_POST['apply'])){
$update = "UPDATE pilots SET status = '3'
           WHERE login = '{$_GET['login']}'";
$result = mysql_query($update) or die mysql_error());	

   }  }  ?>
  
   <script>javascript:alert("You have now Filed an L.O.A")</script>
   
   
    
   <form action="<?php echo $_SERVER['php_self']; ?>" method="post"/>
   <input type="submit" name="apply" value="file L.O.A"/>
   </form>

 

This is line 25

 

 $result = mysql_query($update) or die mysql_error());	

 

May somebody please tell me why I am always receiving these errors, an dhow to fix them in the future thanks.

 

Link to comment
https://forums.phpfreaks.com/topic/131151-t-string-error-please-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.