Hi
Anyone knows the function to start a transaction in the context of php ODBC functions ?
Printable View
Hi
Anyone knows the function to start a transaction in the context of php ODBC functions ?
Do u mean something like this?
PHP Code:<?
$strDSN = "DSN=dsnsourcename;";
$strSQL = "SELECT * FROM yourtable";
$rs = new com("ADODB.RecordSet");
$rs->open($strSQL,$strDSN,2,1);
while(!$rs->EOF){
print $rs->fields["Value"]->value."<br>";
$rs->movenext;
}
$rs->close
?>
The subject is 'Unified ODBC functions', exists a function 'commit' and other named 'rollback', but nothing like 'begin' or 'begintrans' !?!?