Function db_delete
Handy MYSQL delete operation for single record. It checks FK delete RESTRICT constraint, then SET deleted if it cannot be deleted
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 |
Table name without prefix |
string|array |
$condition = null |
<p>The array of condition for delete - field names and values, for example</p> <pre><code>array( 'fieldName1' => $value1, 'fieldName2 >=' => $value2, 'fieldName3 => NULL ) </code></pre> <p>The built condition string, for example,</p> <pre><code>db_or(array( 'fieldName1' => $value1, 'fieldName2 >=' => $value2, 'fieldName3 => NULL )) </code></pre> |
boolean
|
Returns TRUE on success or FALSE on failure |