booking/work/data/select_test.php
2025-03-24 19:02:58 +03:00

39 lines
847 B
PHP

<?php
$done = false;
if (!$done) {
ini_set('memory_limit', '10G');
$name_db = "aqdamypanel_aqdamy";
$host_db = "localhost";
$user_db = "aqdamypanel_mysql";
$pass_db = "AST4dxy6vEsi";
$db = new mysqli($host_db, $user_db, $pass_db, $name_db);
if ($db->connect_error) {
die("Connection failed: " . $db->connect_error);
}
// Change db to "test" db //// mysqli_select_db($db, "test");
$Arabic= 'SET CHARACTER SET utf8';
mysqli_query($db,$Arabic) or die ('Can\'t charset in DataBase');
$db->set_charset("utf8");
$itis_in = '';
$check = mysqli_query($db,
"SELECT *
FROM `points`
"
);
if (mysqli_num_rows($check) > 0) {
while ($check_row = mysqli_fetch_assoc($check)) {
print_r($check_row);
}
}
}
?>