Function db_delete_multi
Handy MYSQL delete operation for multiple records
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 |
array |
$condition = null |
<p>The array of condition for delete - field names and values, for example</p> <p>array of AND condition syntax,</p> <pre><code>array( 'field_name_1' => $value1, 'field_name_2 >=' => $value2, 'field_name_3' => NULL ) </code></pre> <p>array of OR condition syntax,</p> <pre><code>array( '$or' => array( 'field_name_1' => $value1, 'field_name_2 >=' => $value2, 'field_name_3' => NULL ) ) </code></pre> |
boolean |
$softDelete = false |
Soft delete or not |
boolean
|
Returns TRUE on success or FALSE on failure |