Just print out $result within it. I'm not sure I'd take this approach though, the overhead is high. Insert will allow multiple values to be inserted at the same time:
INSERT INTO table VALUES
(column1, column2, column3),
(column1_2, column2_2, column3_2),
This can be used to dynamically build the relevant code. You can retrieve the number of inserted values with
I can't give you anything for your current though, the SQL itself is invalid. You have more columns listed than corresponding values, so your actual query will fail (use or die to see this eg:
mysql_query($yourquery) or die(mysql_error());
). You'll be wanting to use mysql_real_escape_string on anything user provided from your $_REQUEST, but if possible I'd recommend avoiding $_REQUEST (since its final override is cookie), and retrieve from the appropriate $_GET or $_POST instead.