I have this prepared Statment:
$stmt = $dbh->prepare("select * from t where name like :name ");
Binding like this works:
$p = "%glas%";
$stmt->bindParam(':name', $p );
If I put in the term direktly, it fails:
$stmt->bindParam(':name', "%glas%" );
What´s the difference?