Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-MySQLi-Database-Class
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
Kulya
PHP-MySQLi-Database-Class
Commits
157103fc
Commit
157103fc
authored
Oct 23, 2010
by
Josh Campbell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
bca6c934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
readme.md
readme.md
+22
-0
No files found.
readme.md
View file @
157103fc
...
@@ -70,6 +70,28 @@ print_r($results); // contains array of returned rows
...
@@ -70,6 +70,28 @@ print_r($results); // contains array of returned rows
</code>
</code>
</pre>
</pre>
<h3>
Raw Query Method
</h3>
<pre>
<code>
$params = array(3, 'My Title');
$resutls = $db->rawQuery("SELECT id, title, body FROM posts WHERE id = ? AND tile = ?", $params);
print_r($results); // contains array of returned rows
// will handle any SQL query
$params = array(10, 1, 10, 11, 2, 10);
$resutls = $db->rawQuery("
(SELECT a FROM t1 WHERE a = ? AND B = ? ORDER BY a LIMIT ?)
UNION
(SELECT a FROM t2 WHERE a = ? AND B = ? ORDER BY a LIMIT ?)
", $params);
print_r($results); // contains array of returned rows
</code>
</pre>
<h3>
Where Method
</h3>
<h3>
Where Method
</h3>
<p>
This method allows you to specify the parameters of the query.
</p>
<p>
This method allows you to specify the parameters of the query.
</p>
<pre>
<pre>
...
...
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