Function db_extract
Perform a query on the database and return the array of all results
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 |
$sql |
The SQL query string |
array |
$args = array() |
The array of placeholders and their values |
integer |
$resultType = LC_FETCH_OBJECT |
<p>The optional constant indicating what type of array should be produced. The possible values for this parameter are the constants <strong>LC_FETCH_OBJECT</strong>, <strong>LC_FETCH_ASSOC</strong>, or <strong>LC_FETCH_ARRAY</strong>. Default to <strong>LC_FETCH_OBJECT</strong>.</p> |
array|boolean
|
The result array of objects or associated arrays or index arrays. If the result not found, return false. |