multiple_delete()

See also delete()

Deletes all records from the database that match the values of the currently set variables. Unset variables are not considered.

Example:

example.php
<?php
include("lib.php");
load("person_has_business");

$phb = new person_has_business;
$phb->set_person_id("12");
if (!$phb->multiple_delete())
{
    echo "Failed to delete";
    return 0;
}
echo "Delete Successful";

?>