Songbook entfernt

This commit is contained in:
aschwarz
2023-04-11 13:42:33 +02:00
parent 87e6a16e5b
commit 376170cce7
7 changed files with 9 additions and 130 deletions

View File

@ -56,32 +56,6 @@ if ($function == 'verlag')
}
}
if ($function == 'songbook')
{
if (isset($_POST["term"]))
{
$term = mb_strtoupper(trim($_POST["term"]));
$query = "SELECT distinct bezeichnung FROM jumi_noten_songbook WHERE upper(bezeichnung) LIKE '%" . $term . "%'";
$result = $db->query($query) or die("Cannot execute verlag");
if (mysqli_num_rows($result) > 0)
{
while ($row = $result->fetch_array())
{
$output[] = array(
"label" => $row['bezeichnung'],
"value" => $row['bezeichnung']
);
}
#}else{
# $output[] = array("label" => "keine Treffer");
}
echo json_encode($output);
}
}
?>