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