Jump to content

N0L1m1t5

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Posts posted by N0L1m1t5

  1. Im using a mac and whenever I go to phpmyadmin and try to change the password, there is a code that says (posted below)

     

    Error

    MySQL said:

     

    #1045 - Access denied for user 'root'@'localhost' (using password: NO)

    phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

     

    If I uninstall and then install xampp, it works fine again until I try to add a password, because then the same problem occurs.

     

    Thanks

  2. If I want text to be positioned 80% below the top of the page and 30% away from the left side of the page (for example), how could i write this out with css? I didnt want to use pixels because I heard they arent the same for all screen resolutions and using percentages will adjust to any screen, is this true?

    Thanks

  3. When you say to post this:

     

    <?php

    else

        echo "<br><br><center><h1>Error:</h1>Incorrect Password!</center>";

    ?>

    <style type='text/css'>

    body { background-color: color; }

    </style>

    <?

    if you have more stuff here

    ?>

     

     

    did you intentionally not write a beginning <?php before the sentence "<style type...." and an ending ?> after the ending </style> tag??

    Thanks

  4. My first page only has the basic features so far: (posted below)

     

    <html>

    <body>

     

    <form action = 'login.php' method = 'POST'>

    Username:   <input type='text' name = 'username'><br>

    Password:          <input type = 'password' name = 'password'><br>

    <input type = 'submit' value = 'Log in'>

     

    </body>

    </html>

     

     

     

     

    But i keep getting that same error

  5. I am creating a login page for a web and i keep getting the error posted below:

     

     

    Notice: Undefined index: username in C:\xampp\htdocs\login.php on line 26

     

    Notice: Undefined index: password in C:\xampp\htdocs\login.php on line 27

    Incorrect password

     

     

    This is the code i have listed in my login.php document :

     

     

     

    <?php

     

    if( isset($_POST['submit']) && $_POST['Log in'])

     

    session_start();

     

     

    $username = $_POST ['username'];

    $password = $_POST ['password'];

     

    if ($username&&$password)

     

    {

     

    $connect = mysql_connect ("localhost","root","") or die("Couldn't Connect");

    mysql_select_db("database") or die ("Couldn't find db");

     

    $query = mysql_query("SELECT * FROM users WHERE username = '$username'");

     

    $numrows= mysql_num_rows($query);

    if ($numrows!=0)

    {

    while($row = mysql_fetch_assoc($query))

    {

     

    $dbusername = $row['username'];

    $dbpassword = $row['password'];

    }

     

    if ($username==$dbusername&&$password==$dbpassword)

    {

     

    echo "You're in!<a href='member.php'>Click here to enter the member page.</a>";

    $_SESSION['username']=$username;

     

    }

     

    else

    echo "Incorrect password";

     

    }

    else

    die("That user doesn't exist!");

     

    }

    else

    die("Please enter a username and a password!");

     

    ?>

     

     

     

     

     

     

    Can anyone help me please??

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