I have this code and i only want to display a record from the table :
<?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;
?>
I get this error :
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.
The table has more then 4 rows , but i just wanna see if it works.