Parse error: syntax error, unexpected 'root' (T_STRING) in C:\xampp\htdocs\p\y\login.php on line 9
===

edit: Parse error: syntax error, unexpected 'mysql_select_db' (T_STRING) in C:\xampp\htdocs\phpacademy\tutorials\loginsession\login.php on line 10
**My login.php..**

    <?php
    
    $username = $_POST['username'];
    $password = $_POST['password'];
    
    if ($username  &&  $password)
    {
    
    $connect = mysql_connect("localhost, "root", "CORRECTPASS" or die("Couldn't Connect") ;
    mysql_select_db("phplogin"); or die("Couldnt find db") ;
    }
    ?>`



**My index.php**

        
    <html>    
    <head>          
    <form action="login.php" method='POST'>   
    		Username: <input type="text" name="username" ><br>  
    		Password: <input type="password" name="password" ><br>  
                      <input type="submit" value="Login" />  
    
    </form>  
              
        </html>  

What is wrong: :/ 



  [1]: http://www.youtube.com/watch?v=4oSCuEtxRK8

I have correct tables, db.

I searched numerous other stackoverflow questions similiar to this with no luck.
I hope someone can help me, thanks.


A syntax error is always result of a typo or a missing semicolon?