insert WITHOUT 1 primary key

insert()

All fields that cannot be null must already be set. system will attempt to blindly add the record based on the currently set fields.

For single primary key tables, inserts references from lookup tables only if the lookup table has exactly 2 fields.

Example:

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

$phb = new person_has_business();
$phb->set_person_id("2");
$phb->set_business_id("25");
if (!
$phb->insert())
{
    echo 
"Failed to insert";
    return 
0;
}
echo 
"Insert Successful";

?>