Parse error: syntax error, unexpected '$username' (T_VARIABLE) in C:\xampp\htdocs\try\index.php on line 11
<pre><code> &lt;?php
    // Use session variable on this page. This function must put on the top of page.
    session_start();
    ////// Logout Section. Delete all session variable.
    session_destroy();
    $message="";
    ////// Login Section.
    $Login=$_POST['Login'];
    if($Login)
     { // If clicked on Login button.
     $username=$_POST['username'];
    $md5_password=md5($_POST['password']); // Encrypt password with md5() function.
    // Connect database. 
    $host="localhost"; // Host name.
    $db_user=""; // MySQL username.
    $db_password=""; // MySQL password.
    $database="tutorial"; // Database name.
    mysql_connect($host,$db_user,$db_password);
    mysql_select_db($database);
    // Check matching of username and password.
    $result=mysql_query("select * from admin where username='$username' and password='$md5_password'");
    if(mysql_num_rows($result)!='0'){ // If match.
    session_register("username"); // Craete session username.
    header("location:main.php"); // Re-direct to main.php
    exit;
    }else{ // If not match.
    $message="--- Incorrect Username or Password ---";
    }
    } // End Login authorize check.
    ?&gt;
</code></pre>
