Finally got it cracked. Thank you very much for your help:
8¬)
I have my transactions set on only the final delete page - this principal should work for modifying data also.
Heres the code. Do you think it looks right?
<?php
//start a transaction
@mssql_query("BEGIN WORK");
$sql = "DELETE FROM TABLE WHERE COLUMN = \"$VAR1\" ";
$sql_result = @mssql_query($sql) or die("Couldn't execute query.");
if (!$sql_result)
{
$feedback .= pg_errormessage($s);
$feedback .= ' Error - Database didn\'t return next value ';
@mssql_query("ROLLBACK");
return false;
}
else
{
#########################################################
The Connection and PHP will pause for 5 seconds -
A good test to test transactions is to up to 20,
open a new session to see if the record is
available for selection
#########################################################
sleep(5);
echo "
<TR>
<TD ALIGN=\"CENTER\">
<FONT FACE=Arial SIZE=3>Your selected record has been removed </FONT>
</TD>
</TR>
";
//commit this transaction
@mssql_query("COMMIT");
return true;
}
?>
Cheers