* This way of authentication is not secure. use prepared statements for security
______________________
[+] For more tutorials visit -- https://allwebtuts.wordpress.com/
[+]
[+] Watch - How to make your own signup+login page here -- • PHP MYSQL user authentication
[+ ] a Sample Project is here
https://www.dropbox.com/s/1nxfr90up9v...
_________
Tip-- Use mysql_real_escape_string() to sanitize the data and protection against sql injection...
In this video you can set the session variable auth to anything..
and add the php code on any Page to restrict non logged in members.....Design your login page to make it look better
the table sql code is
create table users
(
id int(3) not null auto_increment primary key,
username varchar(30) not null,
password varchar(30) not null
)
Thanks for Watching...........!!!!!!!!!!