Function db_insert
Handy MYSQL insert operation
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/db_helper.mysqli.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/db_helper.mysqli.php
string |
$table |
The table name without prefix |
array |
$data = array() |
<p>The array of data field names and values</p> <pre><code> array( 'fieldNameToSlug' => $valueToSlug, 'fieldName1' => $fieldValue1, 'fieldName2' => $fieldValue2 ) </code></pre> |
boolean |
$useSlug = true |
True to include the slug field or False to not exclude it |
mixed
|
Returns inserted id on success or FALSE on failure |