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