FoxRocks Posted June 4, 2012 Share Posted June 4, 2012 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~ Quote Link to comment https://forums.phpfreaks.com/topic/263621-new-to-php-and-im-getting-unexpected-t_variable-in-line-3/ Share on other sites More sharing options...
harristweed Posted June 4, 2012 Share Posted June 4, 2012 all lines need to be closed with a semi-colon; Quote Link to comment https://forums.phpfreaks.com/topic/263621-new-to-php-and-im-getting-unexpected-t_variable-in-line-3/#findComment-1351043 Share on other sites More sharing options...
FoxRocks Posted June 4, 2012 Author Share Posted June 4, 2012 YES! That totally fixed it! Thanks so much Quote Link to comment https://forums.phpfreaks.com/topic/263621-new-to-php-and-im-getting-unexpected-t_variable-in-line-3/#findComment-1351046 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.