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
fetch(url)
@ -23,4 +24,4 @@ function sortujSufiksy(data) {
function formatSufiksy(sufiksy) {
// console.log(sufiksy.map((sufiks, index) => `${index + 1} ${sufiks}`).join('\n'));
}
}

View File

@ -2,7 +2,7 @@
$dbhost = "qstack.pl";
$dbuser = "boost";
$dbpass = "pass";
$dbname = "osoby";
$dbname = "db";
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
$ans = mysqli_query($conn, "SELECT * FROM osoby");
@ -14,4 +14,4 @@ while ($row = mysqli_fetch_assoc($ans)) {
}
echo json_encode($json);
?>
?>