General information
Category:
Coding, syntax & commands
>I'm sorry if that makes no sense. What happens is it tries to find a table name in syskeys. If its not there I want it to default the value to 1 for that table and save it in the syskeys table as 1. The problem is it then goes into the else part of the statement and it increments the lastid again and so its saved in syskeys as 2. Next time I go to add it finds the table name in syskeys and increments the id to 3 so I now get three instead of 2. How come it goes into that else part of the if the first time through?
>
>Hope that clears things up!
>
>Tyler
what about saving 0 the first time
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only