Jump to content

MDanz

Members
  • Posts

    728
  • Joined

  • Last visited

Posts posted by MDanz

  1. <?php

    $username $_POST['username'];

    $password $_POST['password'];

     

    if($username&$password)

     

    {

     

     

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

    mysql_select_db("Login")or die("Couldn't Connect");

     

    }

    else {

     

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

    }

    ?>

     

     

    Parse error: syntax error, unexpected T_VARIABLE in /home/ustackc1/public_html/Login.php on line 2

     

    Can anyone help me out i tried different variations and checked but i keep on getting this error when i press the login button.

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