v2.5.2
Giriş yap

PHP pdo sorunu

Anonim
503 defa görüntülendi
$id = post("id");

$query = $db->prepare("select * from todos where todo_user_id=:sid and todo_id=:tid");
$query->execute([
    "sid" => $_SESSION['id'],
    "tid" => $id
]);

$todo = $query->fetch(PDO::FETCH_ASSOC); // Burası

Koddaki $todo değişkenim false dönüyor.
$_SESSION['id'] kontrol ettim doğru.
post("id") kontrol ettim sorun yok.

lubi
1036 gün önce

@makifgokce Denedim olmuyor hala.