Hi i am new to PHP. I am just trying to create a script that takes as parameter any existing tablename and create dynamically a form to accept new information and save it in the database.
The insert statement is dynamically created depending on the tablename and is break as follows:-
$a = "insert into $tabname values(";
$b = "'$col1','$col2','$col3')";
$query = $a.$b;
There are no errors when running the script, the only problem is that it is inserting the string instead of the value(content).
col1 col2 col3
$col1 $col2 $col3
Any help from anyone would be highly appreciated. Thk in adv.