I'm having trouble getting this into one table. Right now I am using two tables and having them side by side but I don't think that is the best solution. I have the table all set up I just can't figure out how to get this into one.
while ($row = mysql_fetch_assoc($query)) {
$result .= "<tr> <td> {$row['a']} the {$row['b']} </td> </tr>";
}
echo $thegames;
This produces something like:
james the giant
rick the monster
chris the goblin
What I want is to be able to add more tds from a separate while loop...
while($secondrow = mysql_fetch_assoc($secondquery)) {
$first = "<td> {$secondrow['alias']} </td>";
$second = "<td> {$secondrow['number']} </td>";
}
So in the end I would like it would look like this:
james the giant $secondrow['alias'] $secondrow['number']
rick the monster $secondrow['alias'] $secondrow['number']
etc...
Hope this makes sense. What I'm doing now is creating two separate tables and trying to line them up but don't like that method. Any help would be great.