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'); ...@@ -8,15 +8,15 @@ $db = new MysqliDb('localhost', 'root', 'root', 'db');
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>untitled</title> <title>untitled</title>
</head> </head>
<body> <body>
<?php <?php
$insertData = array( $insertData = array(
'title' => 'Inserted title', 'title' => 'Inserted title',
'body' => 'Inserted body' 'body' => 'Inserted body'
); );
$results = $db->insert('posts', $insertData); $results = $db->insert('posts', $insertData);
......
...@@ -21,8 +21,8 @@ Next, prepare your data, and call the necessary methods. ...@@ -21,8 +21,8 @@ Next, prepare your data, and call the necessary methods.
<code> <code>
$insertData = array( $insertData = array(
'title' => 'Inserted title', 'title' => 'Inserted title',
'body' => 'Inserted body' 'body' => 'Inserted body'
); );
if ( $db->insert('posts', $insertData) ) echo 'success!'; if ( $db->insert('posts', $insertData) ) echo 'success!';
...@@ -44,8 +44,8 @@ print_r($results); // contains array of returned rows ...@@ -44,8 +44,8 @@ print_r($results); // contains array of returned rows
<pre> <pre>
<code> <code>
$updateData = array( $updateData = array(
'fieldOne' => 'fieldValue', 'fieldOne' => 'fieldValue',
'fieldTwo' => 'fieldValue' 'fieldTwo' => 'fieldValue'
); );
$db->where('id', int); $db->where('id', int);
$results = $db->update('tableName', $updateData); $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