Skip to content
Advertisement

SQL Insert query not storing upon button press

I am creating a project in which a database can be read and modified through an app. The tutorial for the insert section has lost me though. Using lowercase to begin a word causes a syntax error, fine. But, when capitalising the first letter it is accepted. The page then closes and takes you back to the main menu without indicating any errors. However, unlike my tutors tutorial, my added record does not show in the list view. So if anyone could help me understand where I’ve gone wrong it would be greatly appreciated!

The Insert Activity:

JavaScript

Insert Function within OpenDatabase class.

JavaScript
JavaScript

Advertisement

Answer

Missing , after every value. (‘Film’, ‘Genre ‘, ‘Role ‘, ‘Year ‘, ‘Ratiung ‘) More info

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement