Thanks it work~ Using the sql statement as suggested i was able to echo out both the brand and total. Is it possible just to display out the total and not the brand as i have tried doing echo $row['total'] and it doesnt work. any help would be appreciated~thank~~
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
foreach ($row as $result){
echo $result;
}