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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -