Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 21, 2005, 1:34 pm
rate this thread
I spent all this afternoon to solve this problem, so I thought to write
two lines to describe this strange behaviour.....
- I'm using PHP with PEAR:DB package.
- I set autocommit to false
- I prepare a statement
- I execute it
- THE PAGE NEVER COMPLETES
- Use the 'query' method intead of the 'prepare' method. Pass the
'query' method the prepared arguments.
$res =& $DB->query('INSERT INTO person (id,username)VALUES (?, ?)',
HOPE THIS HELPS!!