I am having a problem with using the sql statement
select last_insert_id();
Here is my code
Set rs2 = DbConn.Execute( "SELECT last_insert_id();" )
topicnum = rs2(0)
rs2.Close
Set rs2 = Nothing
Running this code only returns an id of 0 which causes duplicate id errors.
I am running the max debug server on localhost, w2k.
Not sure what could be wrong because it works fine on my host server. Should I change to another service? Can anyone help?
select last_insert_id();
Here is my code
Set rs2 = DbConn.Execute( "SELECT last_insert_id();" )
topicnum = rs2(0)
rs2.Close
Set rs2 = Nothing
Running this code only returns an id of 0 which causes duplicate id errors.
I am running the max debug server on localhost, w2k.
Not sure what could be wrong because it works fine on my host server. Should I change to another service? Can anyone help?