<?php $result = sesam_execimm("DELETE FROM PHONE WHERE LASTNAME = '" . strtoupper($name) . "'"); if (!$result) { /* ... error ... */} echo sesam_affected_rows($result). " entries with last name " . $name . " deleted.\n";?>