Bu:PDO referans bildirimi ile mi geçiyorsunuz?
$stmt = $dbh->prepare("SELECT thing FROM table WHERE color = :color");
$stmt->bindParam(':color', $someClass->getColor());
$stmt->execute();
bu verir:
Çalışma bildirim
sadece değişkenler referans
hala yürütür olsa tarafından kabul edilmelidir.
Bu: şikayeti olmayan
$stmt = $dbh->prepare("SELECT thing FROM table WHERE color = :color");
$tempColor = $someClass->getColor();
$stmt->bindParam(':color',$tempColor);
$stmt->execute();
çalışır.
Farkı anlamıyorum?