I have retrieve some data from table. form array like
I want array is..
$subpro[HardDisk] = array (H1000 => 1200,H500 => 700);
$subpro[Ip] = array (4IP => 400 , 2IP => 200);
$subpro[Ram] = array (..);
$subpro[processor] = array (...);
php code ..
while($row=mysql_fetch_array($res))
{
if(sizeof($subpro[$row['category']]>0)
array_put_to_position($subpro[$row['category']],$row['rate'], 2,$row['name']);
else
$subpro[$row['category']]=array($row['name']=>$row['rate']);
}