This commit is contained in:
parent
edff1c9ebd
commit
d7505f59d3
3
fetch.js
3
fetch.js
|
@ -1,4 +1,5 @@
|
||||||
const url = "http://localhost/p20/get.php"
|
//const url = "http://localhost/p20/get.php"
|
||||||
|
const url = "http://qstack.pl:8080/z1/get.php"
|
||||||
let lista
|
let lista
|
||||||
|
|
||||||
fetch(url)
|
fetch(url)
|
||||||
|
|
2
get.php
2
get.php
|
@ -2,7 +2,7 @@
|
||||||
$dbhost = "qstack.pl";
|
$dbhost = "qstack.pl";
|
||||||
$dbuser = "boost";
|
$dbuser = "boost";
|
||||||
$dbpass = "pass";
|
$dbpass = "pass";
|
||||||
$dbname = "osoby";
|
$dbname = "db";
|
||||||
|
|
||||||
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
|
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
|
||||||
$ans = mysqli_query($conn, "SELECT * FROM osoby");
|
$ans = mysqli_query($conn, "SELECT * FROM osoby");
|
||||||
|
|
Loading…
Reference in New Issue