sql - PHP PDO in and limit clause -
sql - PHP PDO in and limit clause -
hey guys using pdo "in clause" looks (because of pdo hating in clause)
$str = 'example,example2'; $sth = $dbh->prepare("select id keywords keyword_id in (".$str.")");
but how do limit correctly, seems when seek limit messed results. i'm guessing it's doing limit each of words in $str?
anyways, help?
php sql pdo
Comments
Post a Comment