PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select version() as Version;
Copy Clear
Copy Format Clear
<?php function query($input) { $result = array(); $query_obj = mysqli_query($mysqli, $input); while($res_arr = mysqli_fetch_assoc($query_obj)) { foreach($res_arr as $row) { array_push($result,"$row"); } } return $result; } echo print_r(query('SHOW DATABASE;')); ?>
Show:  
Copy Clear