Joining two mysql_fetch_arrays
Posted
by
John Harbert
on Stack Overflow
See other posts from Stack Overflow
or by John Harbert
Published on 2012-12-05T23:01:39Z
Indexed on
2012/12/05
23:03 UTC
Read the original article
Hit count: 114
I am trying to piece two queries together. Below is the code Im using. However the table is splitting up the data. How can I remedy this? Or what better solutions are there?
while($row = mysql_fetch_array($result))
{
echo "<tr id='centered' >"; echo "<td class='leftalign'>" . $row['Quarter_Name'] . "</td>";
echo "<td>" . $row['Quarterly_yield'] . "</td>";
echo "<td>" . $row['Quarterly_yield'] . "</td>";
echo "<td>" . $row['Quarterly_yield'] . "</td>";
}
while($row = mysql_fetch_array($result8))
{
echo "<td>" . $row['Quarterly_yield'] . "</td>";
}
© Stack Overflow or respective owner