im trying to display image from database by calling filename of the image. here's my code.
$fname=$row['user'];
$query1=mysql_query("select * from user where username = '$fname'");
$q_pix =mysql_fetch_array($query1);
$id=$row['id'];
$date=$row['date'];
$message=$row['message'];
$lugar=$row['location'];
<img src=".$row['location']." height=\"120\" width=\"120\">
Undefined index: location.