Jump to content

help needed


whizzykid

Recommended Posts

Hi all,I am creating a website i am almost through with that but when i get to the part of linking the username entered in the databse  to an account i get stuck.

 

can  Any1 help?

 

We need more information.  You should have an auto-increment id for the username's primary key.

Link to comment
https://forums.phpfreaks.com/topic/156827-help-needed/#findComment-826061
Share on other sites

this the code

if (isset($_POST['Login'])) {

  $loginUsername=$_POST['Login'];

  $password=$_POST['Password'];

  $MM_fldUserAuthorization = "";

  $MM_redirectLoginSuccess = "/my profile.php";

  $MM_redirectLoginFailed = "/Login Failed.php";

  $MM_redirecttoReferrer = false;

  mysql_select_db($database_inteecom_ellen, $inteecom_ellen);

 

  $LoginRS__query=sprintf("SELECT Login,Password FROM `Customer Login` WHERE Login=%s AND Password=%s",

    GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "int"));

 

  $LoginRS = mysql_query($LoginRS__query, $inteecom_ellen) or die(mysql_error());

  $loginFoundUser = mysql_num_rows($LoginRS);

  if ($loginFoundUser) {

    $loginStrGroup = "";

   

    //declare two session variables and assign them

    $_SESSION['MM_Username'] = $loginUsername;

    $_SESSION['MM_UserGroup'] = $loginStrGroup;

 

for every person tht logs in takes them to the same account information,how can i make it display account information per login and password info?  

Link to comment
https://forums.phpfreaks.com/topic/156827-help-needed/#findComment-826483
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.