Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
7842e361
Commit
7842e361
authored
Aug 17, 2010
by
Jonathan H. Wage
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'hhamon/master'
Conflicts: reference/en/data-retrieval-and-manipulation.txt
parents
5a819907
06f930d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
data-retrieval-and-manipulation.txt
reference/en/data-retrieval-and-manipulation.txt
+2
-3
No files found.
reference/en/data-retrieval-and-manipulation.txt
View file @
7842e361
...
@@ -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
++ fetch
Row
($sql, array $params)
++ fetch
Assoc
($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',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment