Hello everyone,
My website has a backend administration system that allows me to add/edit/view the data on my website.
I have started making a page that i can select the page i want to add stuff to, then when the form is submitted, input boxes appear for all fields and then i can enter data.
So when this data is entered, i want to dynamically add this to a database.
Instead of doing this:
mysql_query("insert into table values ('bleh', 'noooo', 'booby')", $link);
I want to do something like this :
mysql_query("insert into table values ($field_name)", $link);
so the field name will be replaced by the ... field name.
I have successfully done this on the edit page, as its just a case of looping through the fields updating $field_name with the posted variable.
However im not sure how to do this on a Add page.
Any ideas ?