working script
This commit is contained in:
parent
6fa5b90acb
commit
a417c06059
14
src/cos.php
14
src/cos.php
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
$polanczenie = mysqli_connect('192.168.1.100','root','secret','db');
|
|
||||||
|
|
||||||
$kwerenda = mysqli_query($polanczenie , "SELECT * FROM menu ORDER BY id ASC");
|
|
||||||
|
|
||||||
$json = array();
|
|
||||||
|
|
||||||
while ($row = mysqli_fetch_assoc($kwerenda)){
|
|
||||||
$json[]= $row;
|
|
||||||
}
|
|
||||||
mysqli_close($polanczenie)
|
|
||||||
|
|
||||||
echo json_encode($json)
|
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user