_bai_2_ php

<?php

function getGroupByQuery($query) {

$out = null;

$i = 0;

$rs = mysql_query($query);

if (mysql_num_rows($rs) >0) {

while ($rows = mysql_fetch_assoc($rs)) {

while (@list($key,$val) = @each($rows)) {

$out[$i][$key] = $val;

}

$i++;

}

}

return $out;

}

?>

Bạn đang đọc truyện trên: TruyenTop.Vip

Tags: #12334