Skip to content

A typo in the README #7

@colshrapnel

Description

@colshrapnel

You have a typo in the docs that confused some unsuspecting fellow who came to Stack Overflow, scared by the fact that pdo-debug is not using prepare().

It's better to change the line

$sql = "INSERT INTO test (col1, col2, col3) VALUES (:col1, :col2, :col3)";

to

$query = $pdo->prepare("INSERT INTO test (col1, col2, col3) VALUES (:col1, :col2, :col3)");

just for clarity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions