Songbook entfernt
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user