Login function
0These functions will login a user based on a username and password being matched in a mysql database.
Twitsnip is a place to post code snippets and share them. Login with your existing Twitter account, if you don't have a Twitter account simply create on at www.twitter.com
These functions will login a user based on a username and password being matched in a mysql database.
2 login functions that check if a user is logged in by checking is a session is equal to true that would have been set on login. If not logged in the redirect to login.php
This was the first function I ever wrote and I still use it in nearly every PHP application I create.