17 lines
310 B
PHP
17 lines
310 B
PHP
<?php
|
|
$polaczenie = mysqli_connect("192.168.238.71", "root", "secret", "db");
|
|
|
|
$kwerenda = mysqli_query($polaczenie, "SELECT * FROM zamowienia1 ORDER BY id ASC");
|
|
|
|
$json = array();
|
|
|
|
while ($row = mysqli_fetch_assoc($kwerenda)) {
|
|
$json[] = $row;
|
|
}
|
|
|
|
mysqli_close($polaczenie);
|
|
|
|
echo json_encode($json );
|
|
?>
|
|
|