$action = $_GET['action'];
$id = $_GET['id'];
$field = $_POST['field'];
$filterStr = $_POST['filterStr'];
$filterStr = "%".$filterStr."%";
$kat = $_POST['kategorie'];
function show($action, $id, $field, $filterStr, $kat)
{
if ($action == "search")
{
//Tabelle mit Datensätzen
}
elseif ($action == "kategorie")
{
showKatList($kat);
}
elseif ($action == "deleteXY")
{
deleteXY($action, $id, $field, $filterStr, $kat);
}
}
function deleteXY($action, $id, $field, $filterStr, $kat)
{
// löschen
$
query = "";
// Seite wieder aufrufen
show($action, $id, $field, $filterStr, $kat);
}