> What's the value of $customer_id before you attempt
> the insert?
> right after $customer_id variable is set, do the
> echo $customer_id . '<br />';
> echo gettype ( $customer_id );
> With ADO, a couple of times, I've run into a glitch
> where bindings
> changed types. Haven't taken the time to figure out
> why. Switching
> to autoExecute solves the problem:
> $insert_array = array ( 'customer_id' =>
> $db->getone("select nextval
> 'customer_name' =>
> 'customer_entry_date' => $db->DBDate(time()))
> $result = $db->autoExecute ( 't_customer',
> 'INSERT' );
> Most likely, the reason it works for me is that I
> cleaned up my error
> when switching to the autoExecute method.
using php to cast to to an integer...
$customer_id = (int) $customer_id;
...worked for me. i have a note in on the adodb forum
to find out why it is casting as boolean.
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
In response to
- Re: Error at 2005-12-01 00:33:49 from Charley Tiggs
- Re: Error at 2005-12-01 15:50:15 from Charley Tiggs
pgsql-novice by date
|Next:||From: Gregory Hight||Date: 2005-12-01 01:46:08|
|Subject: PostgreSQL questions|
|Previous:||From: operationsengineer1||Date: 2005-12-01 01:00:02|
|Subject: Re: Error|