Skip to content

Commit 763ae06

Browse files
author
kaysen
committed
MOD: class.MySQL.php
1 parent af9fe9a commit 763ae06

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: test.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
include_once dirname(__FILE__).'/class.MySQL.php';
3+
4+
$DB = new MySQL('test', 'root', 'myzYQswlLX', '127.0.0.1');
5+
6+
/*
7+
$insertData = array('name'=>'kaysen', 'age'=>27, 'created'=>time());
8+
$status = $DB->insert('kaysen_tab', $insertData);
9+
var_dump($status);
10+
*/
11+
12+
/*
13+
$status = $DB->update('kaysen_tab', array('age'=>666), array('id'=>1));
14+
var_dump($status);
15+
*/
16+
17+
$status = $DB->delete('kaysen_tab', array('id'=>1));
18+
var_dump($status);

0 commit comments

Comments
 (0)