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
5019f88f
Commit
5019f88f
authored
Nov 05, 2010
by
Josh Campbell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted spaces to tabs (finally)
parent
42499f70
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
405 additions
and
405 deletions
+405
-405
MysqliDb.php
MysqliDb.php
+397
-397
index.php
index.php
+4
-4
readme.md
readme.md
+4
-4
No files found.
MysqliDb.php
View file @
5019f88f
This diff is collapsed.
Click to expand it.
index.php
View file @
5019f88f
...
...
@@ -8,15 +8,15 @@ $db = new MysqliDb('localhost', 'root', 'root', 'db');
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
untitled
</title>
<meta
charset=
"utf-8"
>
<title>
untitled
</title>
</head>
<body>
<?php
$insertData
=
array
(
'title'
=>
'Inserted title'
,
'body'
=>
'Inserted body'
'title'
=>
'Inserted title'
,
'body'
=>
'Inserted body'
);
$results
=
$db
->
insert
(
'posts'
,
$insertData
);
...
...
readme.md
View file @
5019f88f
...
...
@@ -21,8 +21,8 @@ Next, prepare your data, and call the necessary methods.
<code>
$insertData = array(
'title' => 'Inserted title',
'body' => 'Inserted body'
'title' => 'Inserted title',
'body' => 'Inserted body'
);
if ( $db->insert('posts', $insertData) ) echo 'success!';
...
...
@@ -44,8 +44,8 @@ print_r($results); // contains array of returned rows
<pre>
<code>
$updateData = array(
'fieldOne' => 'fieldValue',
'fieldTwo' => 'fieldValue'
'fieldOne' => 'fieldValue',
'fieldTwo' => 'fieldValue'
);
$db->where('id', int);
$results = $db->update('tableName', $updateData);
...
...
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