Hallo Flo .... fehlt was
$sorting_del = "update fahrzeuge set sortid=".($sortid-1)." where sortid>'$delsortid' AND typ='$typ' AND marke='$marke'";
Gib mal an dieser Stelle den Inhalt Deines SQL-Statements per echo aus, und Du wirst sehen und staunen:
update fahrzeuge set sortid=3 where sortid>3 and typ='motorrad' and marke='Kawasaki'
Statt dessen:
$sorting_del = "update fahrzeuge set sortid = sortid - 1 where sortid > '$delsortid' AND typ='$typ' AND marke='$marke'";
sollte eher das tun, was Du erwartest.
Danke
Freundliche Grüsse,
Vinzenz