What you're given is a connection. You put that at the top of your page (or just before you do any queries).
ex:
$db = mysql_connect ("12.34.56.78","me","mypassword") or die ("Unable to connect");
mysql_select_db ("my_database_name") or die ("Cannot select database");
Then you can start querying!
to insert:
$result = mysql_query ("INSERT INTO table_name (field_name1,field_name1) VALUES ('$field_value1','$field_value2')") or die (mysql_error());
That'll insert the values $field_value1 and $field_value2 into the fields field_name1 and field_name2 which are in your table.
Make sure you have a table first, though. If you don't, use phpMyAdmin to make one.
Now to pull it out:
PHP Code:
<table border="0">
<tr>
<td bgcolor="#cccccc">Value of field_name1</td>
<td bgcolor="#cccccc">Value of field_name2</td>
</tr>
<?
$result = mysql_query ("SELECT * FROM table_name");
while ($row = mysql_fetch_array ($result)){
?>
<tr>
<td><?=$row["field_name1"]?></td>
<td><?=$row["field_name2"]?></td>
</tr>
<? } ?>
</table>
That'll print the values of field_name1 and field_name2 in your DB.
Doh! I have to go to work now, so if you need anymore help which I assume you will, you can contact me at "aaronvvright @ hotmail DOT com"