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

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

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -