Ok i have a dtabase full of items, and im making a search script, $search contains what the user is searching for and I need to search columns description OR longdescription, and I need it to search them case-insensitive. The one I tried just doesnt work good at all.
$sth = $dbh->prepare("SELECT * FROM `items` WHERE description AND
+longdescription LIKE '$search'");
$sth->execute or die $dbh->errstr;