I am new to the use of mySQL. I have created a html form that passes data to a php script that is supposed to create a connection to my database and input a single set of data. I know that it is making the connection and even getting my posted data echoed but keep getting an error for the INSERT query. Here are the relevant lines of php code:
$query = "INSERT INTO TomsList (
Date,
IP_Address,
Show,
Type,
User,
EMail,
Phone,
Division,
Location,
Title,
Description,
File1)
VALUES (
'$POST[todaysDate]',
'$POST[ipAddress]',
'$POST[showOrHide]',
'$POST[dbType]',
'$POST[Name]',
'$POST[EMail]',
'$POST[Phone]',
'$POST[Division]',
'$POST[Location]',
'$POST[Title]',
'$POST[Description]',
'$POST[file1Name]')";
$result = mysqli_query($cxn,$query) or die ("Couldn't execute query!");
Can anyone tell me what I am doing wrong? Any help you can give me will be very much appreciated.