function dbarrayassoc($result){
if(dbrows($result) > 0) {
$output = array();
while($data = dbarray($result)){
$output[] = $data;
}
return $output;
}else{
return false;
}
}
$result = dbquery("SELECT * FROM tbl WHERE condition='1' ");
$data = dbarrayassoc($result);
function dbarrayassoc($result, $json_encode = false){
if(dbrows($result) > 0) {
$output = array();
while($data = dbarray($result)){
$output[] = $data;
}
if($json_encode) return json_encode($output);
return $output;
}else{
return false;
}
}
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions