I’m learning PHP and main my concern is adding activity to my website, but I don’t know SQL. Is there a way to do this without SQL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For a quick & dirty solution, you could store user credentials in an array, e.g:
You can then match the user’s input, e.g.:
EDIT: On subsequent page call, you can check if the user is still logged in by reading the $_SESSION
To log out the user, you can execute this code:
It would be helpful for you to read about php sessions and arrays, and if I were you I would bite the bullet and try to get into SQL.