Commit 5019f88f authored by Josh Campbell's avatar Josh Campbell

Converted spaces to tabs (finally)

parent 42499f70
This diff is collapsed.
......@@ -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);
......
......@@ -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);
......
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