I want to search in the mysql database. I want the search sent for search to be searched in 2 columns in the table. But I did not get results with this code.
$Ara = $db->prepare("SELECT * FROM urun_bilgileri WHERE (urun_adi LIKE ? OR urun_kodu LIKE ?)");
$Ara->execute(array('%'.$Gelen.'%'));
while($Liste = $Ara->fetchAll(PDO::FETCH_ASSOC)){;
$toplam_icerik = $Ara->rowCount();
}
where is the problem?