Delete get.php
This commit is contained in:
parent
9ed28d7f46
commit
4415c71a0f
17
get.php
17
get.php
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
$dbhost = "qstack.pl";
|
|
||||||
$dbuser = "boost";
|
|
||||||
$dbpass = "pass";
|
|
||||||
$dbname = "db";
|
|
||||||
|
|
||||||
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
|
|
||||||
$ans = mysqli_query($conn, "SELECT * FROM osoby");
|
|
||||||
$json = array();
|
|
||||||
|
|
||||||
|
|
||||||
while ($row = mysqli_fetch_assoc($ans)) {
|
|
||||||
$json[] = $row;
|
|
||||||
}
|
|
||||||
echo json_encode($json);
|
|
||||||
|
|
||||||
?>
|
|
Loading…
Reference in New Issue