I am try to insert data from a form into a database. I am not sure of which code i would use for Inserting the data that is sent from the from. a sample script i found for inserting into a DB is this:
mysql_select_db($mysql);
$query = "INSERT INTO user (host, user, password, select_priv, insert_priv, update_ priv) VALUES ('localhost', 'phpcake', PASSWORD('mypass'), 'Y', 'Y', 'Y')";
mysql_query($query) or die('Error, insert query failed');
$query = "FLUSH PRIVILEGES";
mysql_query($query) or die('Error, insert query failed');
How would i manipulate this to insert my form information?
example names from form boxes are "title , date , service"