OK,
You will need a syntax similar to what I have showed you above.
But since it looks like you are going to be doing a lot of querying, you will need a lot of general knowledge on this, and I'd suggest you have a look at the select, delete and update syntax of mysql at www.mysql.org
The general form:
$query = "Select SOMETHING from SOMETABLE where SOMECONDITION ";
OR
$query = "update SOMETABLE set SOMECOLUM = SOMEVALUE where SOMECONDITION";
$result = mysql_query($query);
In case of a select:
if($result)
{
while($row = mysql_fetch_array($result))
{
echo $row[0];
}
}
hope this gets you going./