This commit is contained in:
2024-04-25 09:04:10 +02:00
parent 9a23a0802f
commit 359a985bcc
7 changed files with 161 additions and 88 deletions

View File

@@ -228,4 +228,17 @@ function addToGroup(int $groupId, int $fileId): bool
}
}
return $output;
}
function getImageURL(int $imageFileID) :string
{
global $mysqli;
$path = "";
$stmtget = $mysqli->prepare('SELECT Path FROM Files WHERE ID = ?');
$stmtget->bind_param('i', $imageFileID);
$stmtget->execute();
$stmtget->bind_result($path);
$stmtget->fetch();
return $path;
}