Google Ads

Login System PHP Script


Login System PHP Script

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

 

Code:
 
  1. <?php
  2. include ("connection.php");
  3. if (isset($_SESSION["SESS_MEMBER_ID"]))
  4.       {
  5.       $result = mysql_query("SELECT member_id FROM `member` WHERE `member_id`='" . $_SESSION["SESS_MEMBER_ID"] . "' LIMIT 1");
  6.       if (mysql_num_rows($result))
  7.             {
  8.             $row = mysql_fetch_array($result);
  9.             $_SESSION["logged"] = $row["member_id"];
  10.             }
  11.       }
  12. ?>

 

 

 


Related Post

Greybox Lightbox Java Script Greybox Lightbox Java Script This script function helps user to display any advertisement(ad) or slideshow while the page is visited. Features ...
AutoCompute Discount using ComboBox PHP Script AutoCompute Discount using ComboBox PHP Script This program explain how to compute discount automatically using combo box you can modified it and...
Gold MEDIA v2.0 PHP Script Download Gold MEDIA v2.0Gold MEDIA v2.0100% Responsive Design Notifications, Email Notifications and Notifications Box Video Upload from 7 popular website: Fac...
Active Super Shop Multi-vendor CMS v1.3 PHP Script... Active Super Shop Multi-vendor CMS v1.3Active Super Shop Multi-vendor CMS v1.3Digital product upload both for vendor and admin Customer will get the s...
Email Form PHP Script Download Email Form PHP Script Download Php script which allows you to send submission form to the website email address using php. Features This em...

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

"