I am trying to retrieve a record from my database when a webpage loads. Basically I need it to check the database, find the highest record ID, increment it by 1, and then post that number on the webpage to tell my user what record number they are about to create.
I think I have the script right for pulling the number (except for incrementing it by 1, right now it will just pull the highest numbered record ID and display it, incrememnting is something I can figure out I am sure).
What I am trying to figure out is how to get it to execute the script at page load. I have a different script that runs when the user clicks the submit button to save the current record, but how do you make a database query run at the load of an html page?
Thanks guys!
Greg
Greg Hicks
VB.Net (Newbie) Programmer
I think I have the script right for pulling the number (except for incrementing it by 1, right now it will just pull the highest numbered record ID and display it, incrememnting is something I can figure out I am sure).
What I am trying to figure out is how to get it to execute the script at page load. I have a different script that runs when the user clicks the submit button to save the current record, but how do you make a database query run at the load of an html page?
Thanks guys!
Greg
Greg Hicks
VB.Net (Newbie) Programmer