Commit a74373b4 authored by Matthew Lewinski's avatar Matthew Lewinski

Fix example code for Connection's executeQuery method.

parent ad9435dd
...@@ -54,7 +54,7 @@ parameters to the execute method, then returning the statement: ...@@ -54,7 +54,7 @@ parameters to the execute method, then returning the statement:
.. code-block:: php .. code-block:: php
<?php <?php
$statement = $conn->execute('SELECT * FROM user WHERE username = ?', array('jwage')); $statement = $conn->executeQuery('SELECT * FROM user WHERE username = ?', array('jwage'));
$user = $statement->fetch(); $user = $statement->fetch();
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment