Ilja Booij wrote:
Paul J Stevens wrote:
This doesn't look right.
Candice Quates wrote:
<snip log messages>
Given that the temporary msgidnr is 7, the message_idnr should *not*
by 0.
Show us the schema for your dbmail_messages table. This sounds like
auto_increment is not set for dbmail_messages.message_idnr
Does that make sense? It looks like the message_idnr is 7 before. So why
should it become 0 afterwards? I'll have a good look at the code.
from the mysql api docs:
Note that `mysql_insert_id()' returns `0' if the previous statement
does not use an `AUTO_INCREMENT' value. If you need to save the value
for later, be sure to call `mysql_insert_id()' immediately after the
statement that generates the value.
--
________________________________________________________________
Paul Stevens [EMAIL PROTECTED]
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands_______________________________________www.nfg.nl