PHP MYSQL PDO program patch
Budget: $10 – $30 AUD
Hi, I need a couple of program patches for my existing project.
The first is to read all the available members from one table, and list as buttons and then to see if that member is currently logged in based on another tables info. (yellow button if not logged in, green button if logged in)
The second part is once they click on the button, if the user hasn't yet logged in, it'll confirm their login, and on acceptance, will write to a table their member no, name, date/time in into another table.
If the user is logged in, it'll confirm they wish to log out and write to the same table above the date/time out.
Must be done in mysql PDO.
I already have the able data, and the page, just need the script in between the header & page body end.
The first is to read all the available members from one table, and list as buttons and then to see if that member is currently logged in based on another tables info. (yellow button if not logged in, green button if logged in)
The second part is once they click on the button, if the user hasn't yet logged in, it'll confirm their login, and on acceptance, will write to a table their member no, name, date/time in into another table.
If the user is logged in, it'll confirm they wish to log out and write to the same table above the date/time out.
Must be done in mysql PDO.
I already have the able data, and the page, just need the script in between the header & page body end.