-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.php
More file actions
64 lines (42 loc) · 1.21 KB
/
test.php
File metadata and controls
64 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
require_once 'class.sole.php';
new Sole;
Sole::load('users');
//Sole::deleteDB('pages');
//Sole::newDB('pages');
//var_dump(Sole::get('users', null, null, array('a', 'ASC', 'CI')));
//Sole::insert('users', array('id'=>10,'phone'=>'555-555-5555','heyy'=>'666 NO ST','username'=>'heyy','password'=>'poooooo'));
Sole::update('users', array('password'=>'passwordhehe', 'address'=>'444 Cott St'), array('password'=>'passwordhehe'));
//Sole::delete('users', array('id'=>10));
//Sole::setField('users', 'nam!e', 'phone', 'John B');
//Sole::deleteField('users', 'name');
echo '<table>';
foreach(Sole::get('users') as $row)
{
echo '<tr>';
// echo '<td>'.$row[''].'</td>';
foreach ($row as $cell)
{
echo '<td>'.$cell.'</td>';
}
echo '</tr>';
}
echo '</table>';
/*
$csv = 'one,"t,wo",three';
var_dump(str_getcsv($csv));
var_dump($testdb);
echo '<br><br><br>';
echo json_encode($testdb);
$testdb = array(
'head'=>array(
'id','phone','username','password'
),
'body'=>array(
array(1,'123-123-1234','user1','23940238h8g2hha'),
array(2,null,'user2','a494in2f32n3n2u'),
array(3,'123-123-1234','user3','23940238h8g2hha'),
)
);
*/
?>