What I am wondering is how you can use INSERT INTO if you don't know how many fields there will be in advance. My project involves adding columns if required. Therefore my code will look like this:
$query = "INSERT INTO table (could be any amount) VALUES (could be any amount)";
Is it possible to populate the 'could be any amount' parts from arrays? These could be as follows:
$array1 = (fieldname, fieldname, fieldname);
$array2 = (value, value, value);
Thanks in advance for any help you can give.