Store the multiple elements in an array:
$fruits = array('red' => array('strawberry','apple'),
'yellow' => array('banana'));
Or, use an object:
while ($obj = mysql_fetch_object($r)) {
$fruits[ ] = $obj;
}
Latest Technology, Windows 7, Windows 8, Business, Bollywood News,Internet news, reviews
$fruits = array('red' => array('strawberry','apple'),
'yellow' => array('banana'));
while ($obj = mysql_fetch_object($r)) {
$fruits[ ] = $obj;
}