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~

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.