title: session management in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2719350/syntax-error-unexpected-t-constant-encapsed-string-in-php">Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>Hello I am trying to design a web page in php to implement session and concept like login and logout.Below is my basic code.</p>
  
  <pre><code>&lt;?php    
  session_start();    
  $host = "localhost";    
  $username = "USERNAME";    
  $password = "PASSWORD";    
  $db = "test";    
  @mysql_connect($host,$username,$password) or die ("error");    
  @mysql_select_db($db) or die("error");    
  ?&gt; 
  </code></pre>
  
  <p>I am getting an error as unexpected_T_CONSTANT_ENCAPSED_STRING on line 3.Please help to remove this error.Is it anything wrong with SOL injection ? </p>