Here is the form input:
<input type="text" name="content" value="" size="32">
here's the insrt query:
$sql = "INSERT INTO ".$_GET['table']."( $data ) VALUES( ".addslashes($_POST['content'])." )";
If I type test1 in the text box and submit, when I print the query I get this:
SQL: INSERT INTO tests( test ) VALUES( test1 )
the table I want to update is tests and the column is test so that looks right?
then I add this and resubmit:
$result = mysql_query($sql, $db) or die(mysql_error());
mySQL returns this error:
Unknown column 'test1' in 'field list'