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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -