title: display certain rows from mysql in php
body: <p>I have this code and i only want to display a record from the table :</p>
  
  <pre><code>&lt;?php
  session_start();
  echo $_SESSION['idu'];
  $connect=mysql_connect("localhost","root","");
  mysql_select_db("bilet");
  $queryreg=mysql_query("SELECT * FROM oferte WHERE idu='$_SESSION['idu']' ");
  while($row = mysql_fetch_array($queryreg)):
    {
      echo   $row['adresa'];
    echo  $row['descriere'] ;
    echo $row['stele'] ;
      echo $row['pret'] ;
    }
    endwhile;
  
  
  ?&gt;
  </code></pre>
  
  <p>I get this error :    </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE),
    expecting identifier (T_STRING) or variable (T_VARIABLE) or number
    (T_NUM_STRING) in D:\xampp\htdocs\bilet\viz.php on line 6.</p>
  </blockquote>
  
  <pre><code> The table has more then 4 rows , but i just wanna see if it works.
  </code></pre>