<?php
$oneriKontrolSorgu = $db->query("SELECT * FROM suggestions WHERE forWhat = '{$forWhat}', wantedID = '{$wantedID}', oldValue = '{$oldValue}', newValue = '{$newValue}'", PDO::FETCH_ASSOC);
if($oneriKontrolSorgu){
print_r($oneriKontrolSorgu);
}else{
print_r($oneriKontrolSorgu->errorInfo());
}
?>query ile deneyelim bu sefer. Eğer çalışırsa size gelen değerleri htmlspecialchars ile filtreleyin. Yine çalışmazsa gelen verileri bize tekrar iletin.
errorInfo() fonksiyonunda hata çıktı fakat şu şekilde o hatayı çözdüm:
$oneriKontrolSorgu->errorInfo() ----->>>> $db->errorInfo()
Ancak genel problem yine devam ediyor;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', wantedID = '25', oldValue = 'tr', newValue = 'fr'' at line 1