Hi,
I am throughly stumped, I have a mysql database, it holds two fields, Username and Date, I have a login.cgi script that logs them in and does two things, it writes to the database named login their username and date, and takes them to a specified page.
Then I have a logoff script that removes their username and date from the login mysql database.
My problem is that im not sure how to write a sub that would allow me to read from the database and just display the username and date in simply html page, also Im lost when it comes to having the login script check everytime that a user logs in to see if there are any entries that are older than 30 minutes, and then delete them, I understand the delete, but not how to check and see if they are older then 30 minutes, the date is getting written to the database as Sun Jun 4 21:11:48 2000
Any help with this is greatly appreciated.
I am throughly stumped, I have a mysql database, it holds two fields, Username and Date, I have a login.cgi script that logs them in and does two things, it writes to the database named login their username and date, and takes them to a specified page.
Then I have a logoff script that removes their username and date from the login mysql database.
My problem is that im not sure how to write a sub that would allow me to read from the database and just display the username and date in simply html page, also Im lost when it comes to having the login script check everytime that a user logs in to see if there are any entries that are older than 30 minutes, and then delete them, I understand the delete, but not how to check and see if they are older then 30 minutes, the date is getting written to the database as Sun Jun 4 21:11:48 2000
Any help with this is greatly appreciated.