mercredi 2 septembre 2015

SQLite PDO ["SQLSTATE[HY000]: General error: 25 bind or column index out of range [duplicate]

This question already has an answer here:

Please look into the below code. SQLite3 PHP - SQLite-PDO

$sql = 'SELECT * FROM employee WHERE name IN (:v1, :v2, :v3)';
$statement = $connection->query($sql);
$statement->bindValue(':v1','manash');
$statement->bindValue(':v2','ram');
$statement->bindValue(':v3','rahim');

for($i=0;$i<$statement->columnCount();$i++){
    $statement->getColumnMeta($i)
}

Aucun commentaire:

Enregistrer un commentaire