The code below shows results from two queries with the output as:
hotel1
hotel2
hotel3..
count of hotel1
count of hotel2
count of hotel3
How can I get the results to read:
hotel1 count of hotel1
hotel2 count of hotel2
hotel3 count of hotel3
Thanks
.
.
.
while($row = mysql_fetch_array($resultsum)){
echo "Total ". $row['hotel']. " = $". $row['SUM(rate)'];
echo "<br />";
}
while($row = mysql_fetch_array($resultcount)){
echo "There are ". $row['COUNT(rate)'] ." ". $row['rate'] ." items.";
echo "<br />";
}
hotel1
hotel2
hotel3..
count of hotel1
count of hotel2
count of hotel3
How can I get the results to read:
hotel1 count of hotel1
hotel2 count of hotel2
hotel3 count of hotel3
Thanks
.
.
.
while($row = mysql_fetch_array($resultsum)){
echo "Total ". $row['hotel']. " = $". $row['SUM(rate)'];
echo "<br />";
}
while($row = mysql_fetch_array($resultcount)){
echo "There are ". $row['COUNT(rate)'] ." ". $row['rate'] ." items.";
echo "<br />";
}