Table of Contents

insertObject

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Database Class JDatabaseMySQLi Method insertObject Reference insertObject() Never Work in Progress

Inserts a row into a table based on an objects properties

Syntax

void insertObject ( $table, &$object, $keyName )

$table string The name of the table
&$object object An object whose properties match table fields
$keyName string The name of the primary key. If provided the object property is updated.

Examples

Example