2024-05-17 08:26:17 +00:00
|
|
|
<?php
|
2024-05-20 05:24:59 +00:00
|
|
|
$dbhost = "qstack.pl";
|
2024-05-20 08:32:10 +00:00
|
|
|
$dbuser = "boost";
|
|
|
|
$dbpass = "pass";
|
2024-05-21 06:57:17 +00:00
|
|
|
$dbname = "db";
|
2024-05-15 10:24:25 +00:00
|
|
|
|
|
|
|
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
|
|
|
|
$ans = mysqli_query($conn, "SELECT * FROM osoby");
|
|
|
|
$json = array();
|
|
|
|
|
2024-05-17 08:26:17 +00:00
|
|
|
|
2024-05-15 10:24:25 +00:00
|
|
|
while ($row = mysqli_fetch_assoc($ans)) {
|
|
|
|
$json[] = $row;
|
|
|
|
}
|
|
|
|
echo json_encode($json);
|
|
|
|
|
2024-05-21 06:57:17 +00:00
|
|
|
?>
|