Commit 06f930d3 authored by Hugo Hamon's avatar Hugo Hamon

[data-retrieval] fetchRow() has been renamed fetchAssoc() in the API. Changed...

[data-retrieval] fetchRow() has been renamed fetchAssoc() in the API. Changed the name in the documentation consequently.
parent 2062ebaa
......@@ -80,12 +80,12 @@ Retrieve only the given column of the first result row.
$username = $conn->fetchColumn('SELECT username FROM user WHERE id = ?', array(1), 'username');
echo $username; // jwage
++ fetchRow($sql, array $params)
++ fetchAssoc($sql, array $params)
Retrieve assoc row of the first result row.
[php]
$user = $conn->fetchRow('SELECT * FROM user WHERE username = ?', array('jwage'));
$user = $conn->fetchAssoc('SELECT * FROM user WHERE username = ?', array('jwage'));
/*
array(
......
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