First complete upload on nas

This commit is contained in:
2024-09-18 11:20:28 +02:00
commit 4f086962fe
6456 changed files with 1232660 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
include('include/headscript.php');
$conn = new mysqli($servername, $username, $password, $database);
$idyogaschool = $_GET['idyogaschool'];
// Recupera le foto dal database
$query = $conn->prepare("SELECT idphotoyogaschool AS id, photofilename, priority FROM photoyogaschool WHERE idyogaschool = ?");
$query->bind_param("i", $idyogaschool);
$query->execute();
$result = $query->get_result();
$photos = [];
while ($row = $result->fetch_assoc()) {
$photos[] = $row;
}
echo json_encode($photos);