You should google for a tutorial on PHP and MySQL and learn the basics of connecting to MySQL and executing a query. It's really very very easy and you should learn it in minutes.
It should go like this:
1. PHP starting tag:
<?php
2. Connect to mysql: (set connection handler as $db)
$db = mysql_connect("localhost", "username", "password");
3. Select mysql database:
mysql_select_db("database_name");
4. Execute the query (ONLY ONE query can be executed here).. You can use multiple mysql_query() functions to execute more:
mysql_query("INSERT INTO blah blah...");
5. Close mysql connection after executing all the queries:
mysql_close($db);
6. Output a dummy message:
echo "Done!";
Wrapped up code:
<?php
$db = mysql_connect("localhost", "username", "password");
mysql_select_db("database_name");
mysql_query("INSERT INTO blah blah...");
mysql_close($db);
echo "Done!";
?>