Originally Posted by kbluhm
In this example, since you are having to write out the entire INSERT query, it would make more send to turn rename the insert()
$data = array( "John", "Smith" );
$sql = "INSERT INTO names ( firstname, lastname) VALUES( ?, ? )";
$db->query( $data, $sql );
It would also seem more intuitive to have the query as the first parameter, and the array of values as an optional second parameter.
Yeah you're right. I actually us $db->insert() when doing any query that doesn't require a return so it's more of a generic function than just insert