Jump to content

Izzatur Rahman

Members
  • Posts

    1
  • Joined

  • Last visited

About Izzatur Rahman

  • Birthday July 7

Previous Fields

  • Languages
    PHP Programmer

Profile Information

  • Location
    Everywhere
  • Interests
    codes

Izzatur Rahman's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hello there..I need some help regarding on my project..I'm having problem with my login...I cannot go through the next page when login..I'm using session because need to drag all user's info till they logout from the system.. I need your help to figure it out because I'm lost..Here's the code..The code given to you is the process for the login... Thanks for your help..<?phpsession_start();?><?php$db = "penyelenggaraan";$link = mysql_connect('localhost', 'root', '');if (!$link) die(mysql_error());mysql_select_db($db ,$link)or die("Couldn't open $db: " .mysql_error());$id=$_POST['id'];$password=$_POST['password'];$a="SELECT FROM admin WHERE id='$id', password='$password'";$result=mysql_query($a);$count=mysql_num_rows($result);if($count > 0){header("Location: admin_option.php");}else{header("Location: admin.php");}mysql_close($link);?>
×
×
  • Create New...