I am also new to PHP and the only thing I found wrong is the last comma which some one had already pointed out.
Can anyone tell me what I am doing wrong with this insert statement? I am using Apache/PHP4 and Access 2000. The last field of the Movies table is called Image and it is supposed to be a picture from the movie and for now I am not filling up that field. I tried putting "" there and it did not work so I decided to put nothing there. This is the error:
Parse error: parse error in F:\users\williamk\ProcessNewMovie2.php on line 38.
Line 38 is where the print statement starts
thanks.
//set up the connection for Movies
$connID = odbc_connect("MovieCat","","");
$query = "Insert into Movies values ($MovieID, $Title, $GenreIDfk, $ReleaseDate, $Description, $Director, $Starring);
$queryID = odbc_exec($connID, $query);
odbc_free_result($queryID);
odbc_close($connID);
print ("<B><CENTER><FONT COLOR=RED>The New Movie Had been entered Into the Database.</FONT></CENTER></B>\n");