<?php
header('Content-type: image/JPG');
$username = "root";
$password = "";
$host = "localhost";
$database = "image";
@mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error());
@mysql_select_db($database) or die("Can not select the database: ".mysql_error());
$query = mysql_query("SELECT * FROM img");
while($row = mysql_fetch_array($query)){
echo $row['image'];
}
?>
that code display first image just!!!!
plz help me!