Event-API und randomimage hinzugefügt
This commit is contained in:
22
rowforeach.php
Executable file
22
rowforeach.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
function rowforeach($query){
|
||||
global $db_id;
|
||||
$result=mysqli_query($db_id, $query);
|
||||
$rows = array();
|
||||
while ($row = $result->fetch_row()) {
|
||||
array_push($rows,$row);
|
||||
}
|
||||
|
||||
return $rows;
|
||||
}
|
||||
function srowforeach($query, array $args){
|
||||
global $db_id;
|
||||
$result=mysqli_execute_query($db_id, $query, $args);
|
||||
$rows = array();
|
||||
while ($row = $result->fetch_row()) {
|
||||
array_push($rows,$row);
|
||||
}
|
||||
|
||||
return $rows;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user