Jump to content

PHP SQl login


chanarmstrong

Recommended Posts

how do i edit this, so it links to mySQL database customer table?

 

if($userName=="janet" && $passWord=="qwerty") {

      // Assign userName to a session variable to track and use on each page

      $_SESSION['userName']=$userName;

      // Assign valid string to a session variable to track session validity

$_SESSION['status']="valid";

  }

  else {

      // error state

      $_SESSION['status']="invalid";

  }

Link to comment
https://forums.phpfreaks.com/topic/237481-php-sql-login/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.