prepare("INSERT INTO followers (follower_id, following_id) VALUES (:follower_id, :following_id)"); $stmt->execute(['follower_id' => $follower_id, 'following_id' => $following_id]); header("location: ../profile.php?user=".$username); } catch(PDOException $e){ echo $e->getMessage(); }