leodirk Posted December 11, 2007 Share Posted December 11, 2007 Ok for whatever reason I can't figure this out and it seems like it would be fairly easy to me, maybe its because I'm tired. Ok I am coding a website for my mom's new shop and basically there is a class list and a calendar that list the classes on what day they are taught. I can get the site to add the class into the database fine and the classes on the calendar for what date they should be. But I tried adding onto the page I add new classes on to have an option to add it to the calendar too. The thing is is the calendar calls the class by the classes ID which increments up by 1 for each new class automatically. The classes are stored in the 'classes' table and the calendar in 'events' and I just can't figure out how to get the page to post the new classes data while getting the new ID and posting it along with the class time/date. Sorry if this doesn't make much sense I'll try to post scripts/more later just too tired to now.. Thanks. Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2007 Share Posted December 11, 2007 Maybe mysql_insert_id() is what your after? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.