Mysql
 sql >> Database >  >> RDS >> Mysql

WHERE clausola confusione con DOP

Prova...

$stmt = $dbh->prepare("SELECT * FROM registry WHERE firstname = :name OR lastname = :name;");
$stmt->bindParam(':name', $name);