Looks like you are really in need of SQL statment?
something like:
DELETE FROM People WHERE LName='Smith'
then PHP would execute the sql statement on the sql server directly....
so the only real thing you would need php to do is to identify the "name" of the user to delete.... and then piece together the statment so ALL that names info is removed....
$connection = mysql_connect("host","user","password") or
die("can't connect");
$db = mysql_select_db("dbname") or die("can't connect to db");
$sql = "UPDATE tablename SET custname='$custname'";
$result = mysql_query($sql) or die("couldn't execute query");
sound like what your looking for?
Hope that helps...
Sea