Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.