<?php
// Connect to database.
$companyid = 3;
// Since this will be the same, it will be
// used to seed the two commands to mysql.
// Command One to Company Table.
$query = "delete from company where id = '$companyid'";
$result = mysql_query($query) or die("Error 1 when removing information.");
// Command Two to Client Table.
$query = "delete from client where id = '$companyid'";
$result = mysql_query($query) or die("Error 2 when removing information.");
// Close connection to database.
?>
This is only if you are wanting to delete the whole row. If not then just use and update command.