Jump to content

New to PHP and I'm getting "...unexpected T_VARIABLE in line 3"


FoxRocks

Recommended Posts

Hello,

 

Thank you for your interest in my problem. I've started to make an html form that posts to a php script that updates a mysql database and I'm getting the mentioned error. Here is my code:

 

<?php
$OEQ_Sched = $_POST['OEQ_Sched']
$OEQ_EMMA = $_POST['OEQ_EMMA']

$con = mysql_connect ("localhost","fox_mat","10845");
if (!$con)
  {
  die('Could not connect: ' .mysql_error());
  }
mysql_select_db("fox_aircraft_status",$con);

mysql_query("UPDATE Aircraft_Daily_Status SET Schedule='.$OEQ_Sched.',EMMA='.$OEQ_EMMA.' WHERE Aircraft='8Q-OEQ'");

mysql_close($con);
?>

 

It does say "line 3" in the error and I've tried a few things with no luck. Any help would be appreciated :)

 

~FOX~

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.