diff --git a/reference/pdo/pdostatement/execute.xml b/reference/pdo/pdostatement/execute.xml index 2f29ed9923..515ce2ee3b 100644 --- a/reference/pdo/pdostatement/execute.xml +++ b/reference/pdo/pdostatement/execute.xml @@ -138,7 +138,6 @@ $sth->execute(array($calories, $colour)); - Execute a prepared statement with question mark placeholders bindParam(1, $calories, PDO::PARAM_INT); $sth->bindParam(2, $colour, PDO::PARAM_STR, 12); $sth->execute(); ?> +]]> + + + + Execute a prepared statement using array for IN clause + +prepare("SELECT id, name FROM contacts WHERE id IN ($place_holders)"); +$sth->execute($params); +?> ]]>