$json = array();
while($row = mysql_fetch_array($result))
{
$json[]= array(
'IMAGE' => $row['IMAGE'],
'PRICE' => $row['PRICE']
);
}
$jsonstring = json_encode($json);
echo $jsonstring;
$jsonstring - add your data base this var.