$result = dbquery("SELECT * FROM ".DB_XXX."");
$rows = dbrows($result);
if ($rows != 0) {
while ($data = dbarray($result)) {
// if you need an extra passable array, build it in loop.
$extra_array = array();
$extra_array = $data['my_database_table']; // populate the workable array
echo $data['my_database_table']; // or just use it on the fly
}
} else {
echo "no results";
}
$result = \PHPFusion\Database\DatabaseFactory::getConnection('default')->query($query, $param);
$rows = \PHPFusion\Database\DatabaseFactory::getConnection('default')->fetchAllRows($$result);
function fetchFullArray($query, $params=NULL) {
$result = \PHPFusion\Database\DatabaseFactory::getConnection('default')->query($query, $params);
$rows = \PHPFusion\Database\DatabaseFactory::getConnection('default')->fetchAllRows($result);
return $rows;
}
$data = dbarray(dbquery("SELECT * FROM ".DB_XXX.""));
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions