<?php
/*
http://coolpenguin.net/persistclass
for updates, documentation, tutorials
*/
// connect to database (executing demo 1)
require('demo1-connection.php');
// get connection object
$con = DbConnectionPool::instance()->getConnection();
$con->startTransaction();
$sql = 'INSERT INTO TESTTABLE(testcolumn) VALUES("INSERTSUCCESS")';
$con->rollBack();
//$con->commit();
echo 'Test successful';
?>
|