Lines Matching refs:db
14 $db->query("CREATE table php_test(val int)");
15 $db->beginTransaction();
16 $db->query("INSERT INTO php_test(val) values(1)");
17 $db->query("INSERT INTO php_test(val) values(2)");
18 $db->query("INSERT INTO php_test(val) values(3)");
19 $db->query("INSERT INTO php_test(val) values(4)");
20 $db->commit();
23 $db->beginTransaction();
24 $db->query("INSERT INTO php_test(val) values(5)");
25 $db->query("INSERT INTO php_test(val) values(6)");
26 $db->query("INSERT INTO php_test(val) values(7)");
27 $db->query("INSERT INTO php_test(val) values(8)");
28 $db->rollback();
30 $rs = $db->query("SELECT * FROM php_test");
34 $db->query("DROP table php_test");