title: how to start session for login php-mysql?
body: <p>im trying to figure out whats wrong with my codes. everytime I try to run this. theres an error Fatal error: Function name must be a string. could someone help me. thanks</p>
  
  <pre><code> &lt;?php
  
  $username = "root";
  $password = "password";
  $hostname = "localhost";
  
  $dbhandle = mysql_connect($hostname, $username, $password) or die("Could not connect to database");
  $selected = mysql_select_db("ramon_pascual", $dbhandle);
  
  $myusername = $_POST['user'];
  $mypassword = $_POST['pass'];
  
  $myusername = stripslashes($myusername);
  $mypassword = stripslashes($mypassword);
  
  session_start();
  if($_SERVER["REQUEST_METHOD"] == "POST")
  
  
  $query = "SELECT * FROM ramon_account WHERE username='$myusername'  and password='$mypassword'";
  $result = mysql_query($query);
  $count = mysql_num_rows($result);
  
  mysql_close();
  
  if ($count==1) 
  {
      $_SESSION($myusername);
      #$_SESSION['login_user'] = $myusername;
      #$seconds = 120 + time(); 
      #setcookie(loggedin, date("F jS - g:i a"), $seconds);
      header("location:admin.php");
  
  }
  else
  {
      echo 'Incorrect Username or Password';
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>there's a problem in this line in which I cant figure out why</p>
  
  <pre><code>$_SESSION($myusername);
  </code></pre>