I am trying to display multiple columns with multiple rows from a database. It works to display one row, but when I put in the second one it just displays two of the same. Like an echo. How do I get it to display the two different numbers?
$result = mysql_query("SELECT plea, COUNT(plea) as cee FROM tee WHERE section='d' GROUP BY
plea" , $c) or die("two");
$number=mysql_num_rows($result);
if($number>0)
{
$i=0;
while($row_result = mysql_fetch_array($result))
{
$plea.$i = $row_result['plea'];
$cee.$i = $row_result['cee'];
echo $plea.$i." ".$cee.$i."<br><br>";
$i++;
}
}