actually, the full code is just like that,
$sql = "SELECT img_id, img_thumbnail FROM images WHERE img_id = 15";
$result = mysql_query($sql) or die ('list fail' . sql_erroe());
while($row = mysql_fetch_array($result)){
$arr[]=$row;
}
foreach($arr as $array){
$param['image1] = $array['img_thumbnail']; //first image thumbnail from image column in a mysql table
$param['image2'] = $array['img_thumbnail']; //2nd image thumbnail from image column in a mysql table
}
echo $param['image1'];
echo $param['image2'];
hope the above code will clear the requirement..