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

 
 

<?php
include ("connection.php");

if (isset($_SESSION["SESS_MEMBER_ID"]))
      {
      $result = mysql_query("SELECT member_id FROM `member` WHERE `member_id`='" . $_SESSION["SESS_MEMBER_ID"] . "' LIMIT 1");
      if (mysql_num_rows($result))
            {
            $row = mysql_fetch_array($result);
            $_SESSION["logged"] = $row["member_id"];
            }
      }

?>

 

 

 

Comments

Popular posts from this blog

Motos Android Mame Game Download

StatusNet Micro Blog PHP Script Free Download

1941 Counter Attack (Japan) Windows Game Download