Merge pull request #397 from ParallelMazen/patch-1

Small fix in second example comment: MySQL > SQLite
This commit is contained in:
Phil Sturgeon
2014-05-31 19:45:22 +01:00

View File

@@ -38,7 +38,7 @@ $statement = $pdo->query("SELECT some\_field FROM some\_table");
$row = $statement->fetch(PDO::FETCH_ASSOC);
echo htmlentities($row['some_field']);
// PDO + MySQL
// PDO + SQLite
$pdo = new PDO('sqlite:/path/db/foo.sqlite');
$statement = $pdo->query("SELECT some\_field FROM some\_table");
$row = $statement->fetch(PDO::FETCH_ASSOC);