You should really do some reasearch. I will tell you how but you probably won't understand most of it. Here is a simple PHP query:
mysql_query("INSERT INTO table_name (column1, column2) VALUES($value1, $value2)");
That'll work most of the time. You may need to add slashes or sometimes it's better to do something like this:
mysql_query("INSERT INTO table_name (column1, column2) VALUES(" . $value1 . ", " . $value2 . ")");
And even more. It's best to put `` around column1 and column2 but not required. The reason for this is if you put spaces in the column names which is HIGHLY frowned upon. Also if you name a column a MySQL function. I've done this before and it's given me hours of headaches. Now its the first thing I check for.