Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Uploading Form Data to The Database Reply To: Uploading Form Data to The Database

#179872
chrisburton
Participant

@Jarolin It looks like it should be :RUNTIME for :RUN_TIME in your prepared statement.

Change it to this:

// prepare statement for insert
    $insert = $connect->prepare("INSERT INTO movies(TITLE, COVER_URL, STARRING, DIRECTOR, RUNTIME, RELEASED, RATING, PLOT_SUMMARY, PERSONAL_OPINION, TRAILER) VALUES (:TITLE, :COVER_URL, :STARRING, :DIRECTOR, :RUNTIME, :RELEASED, :RATING, :PLOT_SUMMARY, :PERSONAL_OPINION, :TRAILER)");