Fetch one row as an associative array.
dbarray( mixed $result ) : array
$result (string) (Required) The query resource that is being evaluated. This result comes from a call to dbquery().
(array) Returns an associative array of strings that corresponds to the fetched row.
$result = dbquery("SELECT * FROM ".DB_TABLE);
if (dbrows($result) > 0) {
while ($data = dbarray($result)) {
//
}
}