I assume you have briefed yourself on the various MySQL functions built in to PHP in the manual. Basically, you need to:
1) connect to the database server
2) select the database to work with
3) execute some query statement
example:
// connect to MySQL database //
$sqllink = mysql_connect ($server, $uname, $pword)
or die ("Could not connect");
// select msboa database //
$select = mysql_select_db ($dbase)
or die ("could not select $dbase");
From there, you need to execute valid SQL statements using the mysql_query function:
example:
// set SQL statement //
$sql = "INSERT INTO $table3 (name, address, email) VALUES ('$name', '$address', '$email')";
// execute SQL statement //
$result = mysql_query ($sql) or die ("INSERT not successful<BR>".mysql_error());
hope that helps