ESH/includes/config/dev_dbutil_execute.php
2024-10-23 18:28:06 +05:30

25 lines
395 B
PHP

<?php
include "config.php";
// $arr = array();
$data =$_POST['query'];
// $arr[] = explode(';',$data);
// echo $arr[0][0];
$conn->multi_query($data);
do {
if ($result = $conn->store_result()) {
echo $result->fetch_all(MYSQLI_ASSOC);
$result->free();
}else{
echo $check= $conn->error;
}
} while ($conn->next_result());
if (!$check) {
echo "yes";
}
?>