How to reproduce:

Open firebug and execute the following 3-4 times or so:

db_query("INSERT INTO {boxes} (body, info, format) VALUES ('%s', '%s', %d)", "Some body here...", "A title is here", 1);
$delta = db_last_insert_id('boxes', 'bid');
echo $delta;

After the first time you should get the correct id on a clean install, that is 1. But on subsequent executions the value will be 4-digits number.

More details and possible solution at: http://drupal.org/node/821432

Many thanks!

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.