I want to display an image from the database but, I am having trouble doing it. This is my code:
$sqlimage = "SELECT image FROM userdetail where `id` = $id1";
$imageresult1 = mysql_query($sqlimage);
while($rows = mysql_fetch_assoc($imageresult1))
$image = $rows['image'];
Can someone guide me on doing this using PHP?