prepare("DELETE FROM likes WHERE user_id = :user_id AND post_id = :post_id"); $like_abfrage->execute([':user_id' => $like_id, ':post_id' => $liked_id]); header("location: ../index.php"); } catch(PDOException $e){ echo $e->getMessage(); }