Login System in PHP
Submitted by Ndicho Albert on Tuesday, September 27, 2016 - 14:39.
Language
Login System in PHP
Learn how to create a secure login system in PHP and MySQL. This script contains the login form for the registered user to login into his account.It prevents MySQL injection that makes it difficult for your site to be hacked. Example Source Code- <?php
- include ("connection.php");
- {
- $result = mysql_query("SELECT member_id FROM `member` WHERE `member_id`='" . $_SESSION["SESS_MEMBER_ID"] . "' LIMIT 1");
- {
- $_SESSION["logged"] = $row["member_id"];
- }
- }
- ?>
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Comments
Add new comment
- Add new comment
- 697 views