Menu
so i have a nice big sql query that inserts the value of every field into the database.
the problem is that if the user leaves the field empty, i get the following error:
Line 1: Incorrect syntax near ‘,’.
this is because with the empty value, there is now an extra ‘ ‘ in the query. is there another method i can use so that i can send only the data that was entered into the database? my current method obviously has flaws.