Commit 7842e361 authored by Jonathan H. Wage's avatar Jonathan H. Wage

Merge remote branch 'hhamon/master'

Conflicts:
	reference/en/data-retrieval-and-manipulation.txt
parents 5a819907 06f930d3
...@@ -92,13 +92,12 @@ Retrieve only the given column of the first result row. ...@@ -92,13 +92,12 @@ Retrieve only the given column of the first result row.
$username = $conn->fetchColumn('SELECT username FROM user WHERE id = ?', array(1), 0); $username = $conn->fetchColumn('SELECT username FROM user WHERE id = ?', array(1), 0);
echo $username; // jwage echo $username; // jwage
++ fetchRow($sql, array $params) ++ fetchAssoc($sql, array $params)
Retrieve assoc row of the first result row. Retrieve assoc row of the first result row.
[php] [php]
$user = $conn->fetchRow('SELECT * FROM user WHERE username = ?', array('jwage')); $user = $conn->fetchAssoc('SELECT * FROM user WHERE username = ?', array('jwage'));
/* /*
array( array(
'username' => 'jwage', 'username' => 'jwage',
......
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