Hi All,
Using php and MySQL, I completed a login session script and it works great. I am assigning the username and password to select users, and there will be no registration form.
My "users" table in MySQL has 5 columns as follows:
- id
- username
- password
- company
- last_login
I need help with two things:
- How do I INSERT datetime to the MySQL db from the php login script?
- How do I echo the company name on every page of the website whether or not the page contains protected content?
The session_start() is on every page. Protected pages contain an authentication script after the session_start(). My authentication script does not verify the company name, but I want to display the company name upon session register for the duration of the session. Obviously, session_destroy() will terminate display of the company name.
Thanks for the help.