[PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread ZeYuan Zhang
Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as follows: * The statements do commit at the moment when oci_commit executes. * But some

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Chris
ZeYuan Zhang wrote: Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as follows: * The statements do commit at the moment when oci_commit

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Christopher Jones
ZeYuan Zhang wrote: Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as follows: * The statements do commit at the moment when oci_commit

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Christopher Jones
Chris wrote: ZeYuan Zhang wrote: Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as follows: * The statements do commit at the moment

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Chris
Christopher Jones wrote: Chris wrote: ZeYuan Zhang wrote: Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as follows: * The

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Christopher Jones
Chris wrote: Christopher Jones wrote: Chris wrote: ZeYuan Zhang wrote: Hi there. Why oci_commit function always returns true even when the transaction fails. I just copied the code in the php manual [Example 1636. oci_commit() example], and runned it, the situation is as

Re: [PHP-DB] oci_commit always returns true even when the transaction fails.

2010-03-16 Thread Christopher Jones
echo Second Insert\n; $s = oci_parse($c, insert into t_tab values ( 1,-1)); $r = oci_execute($s, OCI_DEFAULT); // Explore the difference with and without OCI_DEFAULT if (!$r) { $m = oci_error($s); trigger_error('Could not execute: '. $m['message'], E_USER_ERROR); } $r =

[PHP-DB] Calculator

2010-03-16 Thread Karl DeSaulniers
Hello, I have been asked to see if I can set up an online calculator. I was wondering if anyone had some pointers on where I can lear/find a script that calculates percentages. The regular math part I think I can figure out. Its not a complicated calc, just basic math and percentages calc, a

Re: [PHP-DB] Calculator

2010-03-16 Thread kesavan trichy rengarajan
http://www.javascriptkit.com/script/cut18.shtml JS based solution would be the easiest. On Wed, Mar 17, 2010 at 3:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: Hello, I have been asked to see if I can set up an online calculator. I was wondering if anyone had some pointers on where I

Re: [PHP-DB] Calculator

2010-03-16 Thread Chris
Karl DeSaulniers wrote: Hello, I have been asked to see if I can set up an online calculator. I was wondering if anyone had some pointers on where I can lear/find a script that calculates percentages. The regular math part I think I can figure out. Its not a complicated calc, just basic math and

Re: [PHP-DB] Calculator

2010-03-16 Thread Karl DeSaulniers
This is close. All that functionality with ability to factor in say a 20% discount. Thanks Kesavan Karl On Mar 16, 2010, at 11:22 PM, kesavan trichy rengarajan wrote: http://www.javascriptkit.com/script/cut18.shtml JS based solution would be the easiest. On Wed, Mar 17, 2010 at 3:07 PM,