Just for starting these are some base functions of Mysql in php
to put something in a table
.....
//connection
$link = mysql_connect("YOURDBSERVER", "USERNAME", "PASSWORD")
or die ("Could not connect");
mysql_select_db ("DBNAME")
or die ("Could not select database");
//defining query
$query="INSERT INTO table (id, name) VALUES ('1', 'ciccio')";
$result = mysql_query ($query)
or die ("Query failed");
//closing db
mysql_close($link);
or for retrieving some data from a table
.....
$link = mysql_connect("YOURDBSERVER", "USERNAME", "PASSWORD")
or die ("Could not connect");
mysql_select_db ("DBNAME")
or die ("Could not select database");
$query = "SELECT * FROM Table";
$result = mysql_query ($query)
or die ("Query failed");
//to print the result
while ($row = mysql_fetch_array ($result)) {
$rownum++;
echo $row[0];
......
mysql_close($link);
........
hope it will help, anyway check tha manual, it's surely clearer than me 😉