Update database.mysql.imp.php

This commit is contained in:
Namhyeon Go 2018-09-11 11:45:22 +09:00 committed by GitHub
parent 98b661ffcd
commit 0cf686acc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,3 +34,16 @@ if(!function_exists("exec_db_mysql_imp_query")) {
return $result;
}
}
if(!function_exists("exec_db_mysql_imp_fetch_all")) {
function exec_db_mysql_imp_fetch_all($sql, $bind) {
$rows = array();
$result = exec_db_mysql_imp_query($sql, $bind);
while($row = mysqli_fetch_array($result)) {
$rows[] = $row;
}
return $rows;
}
}