on Mon, 01 Jul 2002 00:56:27 GMT, [EMAIL PROTECTED] (Donnie
Jones) wrote:
> I am using this command to get the latest value for the
> auto_increment field in the mysql database:
> ########################################
> $field_insertid = $sth->{'insertid'};
> ########################################
>
> but, it is always returning a value of zero, eventhough the latest
> value is not zero.
try
$sth->{'mysql_insertid'}
or
$dhb->{'mysql_insertid'}
after you have inserted a record with 'do' or 'prepare/execute'.
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]