Verdim örnek Where notification.id=1 olarak yine çıkmadı
Ek Olarak: Nerde hata yaptım acaba?
$sth= $db->prepare("SELECT users.id,users.name,users.surname,post.title,post.content FROM notification INNER JOIN users ON users.id=notification.pid Inner Join post ON post.id=notification.postid WHERE notification.pid=1");
$result = $sth ->fetchAll(PDO::FETCH_ASSOC);
print_r($result);
--
tablo adları:
post
notification
users
Acaba fetchAll bölümü mü farklı olucak?