This commit is contained in:
u1 2024-05-21 07:57:17 +01:00
parent edff1c9ebd
commit d7505f59d3
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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");