Jump to content

Killer1390

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by Killer1390

  1. the text color for "Aircraft Details" and "Contact Details" is a bit more difficult to read, maybe something a little darker for that heading level.

     

    Agreed. Although you don't have to make it too much darker.

     

    The website looks pretty professional and from what I can see, it looks like it would be easy to navigate, which is always good.

     

     

  2. I believe the problem is this line:

    $update=mysql_query("UPDATE table SET cat_num=$upoin");

     

    Php has a weird quote system and whatnot. This should fix it:

    $update=mysql_query("UPDATE table SET cat_num='$upoin'");

     

    I think it should anyways, I am new to this. Just look at the end of the line of code to see what I did.

  3. Well, basically I am making my log in script. This is my first website with php and MySQL... actually, its my first website I have done that isn't for a school project.

     

    Anywho, the problem I am having is I can't seem to verify the password of the account I am trying to log into.

     

    Here is the code snippet I am having trouble with:

    $usr = $_REQUEST['Username'];
    $pass = $_REQUEST['Password'];
    $pass = md5($pass);
    if(mysql_query('SELECT Password FROM Accounts WHERE Username = "' .$usr . '"') == $pass)
    {
    session_start();
    $_SESSION['loggedin'] = yes;
    $_SESSION['User'] = $usr;
    $_POST['info'] = ("You have successfully logged in " . $usr . ".");
    } else { $_POST['info'] = "Username and password do not match.";}
    

     

    The problem is that it doesn't seem to matter if the username and password are correct, it always prints "Username and password do not match.".

     

    So, here is the table layout of 'Accounts':

    thing.png

     

    Did I type the mysql query wrong?

     

     

     

     

     

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