Skip to content

Commit d5ba679

Browse files
committed
fix a mistake on code example $query->getResult()
1 parent b21364f commit d5ba679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/database/results.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ as an array of arrays::
3434

3535
$query = $db->query("YOUR QUERY");
3636

37-
foreach ($query->getResult() as $row)
37+
foreach ($query->getResult('array') as $row)
3838
{
3939
echo $row['title'];
4040
echo $row['name'];

0 commit comments

Comments
 (0)