I’ve been following the PHP/MySQL Tutorial from [URL]http://www.freewebmasterhelp.com/tutorials/phpmysql/4
Okay.. so I’m trucking along and being sure to follow the tutorial as closely as possible… and I get my two little pages (airports.php and insertairport.php) coded.. I test run it… and BAM! I get a stupid little
[QUOTE]
Parse error: parse error, unexpected ‘,’ in /home/hsphere/local/home/penguine/mindsjourney.net/Lab/insertairport.php on line 33
I go down to line 33 and it reads as thus
[code=php]$query – “INSERT INTO mva_airports VALUES (“,’$id’,’$faaid’,’$name’,’$city’,’$state’,’$country’,’$atis’,’$ndb’,’$vor’,’$elev’,’$lat,’$long’,’$rwy1′,’$rwy2′,’$mva’,’$mve’,’$gates’,’$notes’)”;
I typed it just like I was told with the exception of changing the table name and input variables.
Just incase you wanna check them, here’s the assign variable lines I typed in at the beginning of the script.
[code=php]
// Declare form variables.
$id=$_POST[‘id’];
$faaid=$_POST[‘faaid’];
$name=$_POST[‘name’];
$city=$_POST[‘city’];
$state=$_POST[‘state’];
$country=$_POST[‘country’];
$atis=$_POST[‘atis’];
$ndb=$_POST[‘ndb’];
$vor=$_POST[‘vor’];
$elev=$_POST[‘elev’];
$lat=$_POST[‘lat’];
$long=$_POST[‘long’];
$rw1=$_POST[‘rw1’];
$rwy2=$_POST[‘rw2’];
$mva=$_POST[‘mva’];
$mve=$_POST[‘mve’];
$gates=$_POST[‘gates’];
$notes=$_POST[‘notes’];