I think this is what you were suggesting. It isn't producing the result I want. This amendment presents the three different arrays completely displayed as one entity in one column.
I want the code to produce one tool image, one tool name and a clickable link, all displayed in one row.
Because the database queries result in an array, I have all of the array data arriving at once. This is not what I want. I want to be able to display one image, with one title alongside and one link also alongside. This is then repeated as a new row with another set of data, repeated until all the data is presented.
Should I be doing this all some other way.
<?php
// Query the database
$query1 = mysql_query("SELECT title FROM topics WHERE managerId='".$managerId."' AND egroup1='"."1"."' ORDER BY title ASC");
$query2 = mysql_query("SELECT url_small FROM topics WHERE managerId='".$managerId."' AND egroup1='"."1"."' ORDER BY title ASC");
$query3 = mysql_query("SELECT title FROM topics WHERE managerId='".$managerId."' AND egroup1='"."1"."' ORDER BY title ASC");
while($row1 = mysql_fetch_array($query3))
{
$linkname .= $row1['title']."<br />\n";
}
?>
<table>
<tr>
<td>
<?php
while ($row2 = mysql_fetch_array($query2))
{
echo '<tr><td>';
$thumbnail.= $row2['url_small'];
echo "<img src='wood_tool_images/{$row2['url_small']}' /><br />\n";
echo '</td></tr>';
}
?>
</td>
<td>
<?php
echo $linkname
?>
</td>
<td>
<?php
while ($row1 = mysql_fetch_array($query1))
{
echo '<tr><td>';
$quizname.= $row1['title'];
echo "<a href='../{$row1['title']} Safety Quiz/{$row1['title']} Safety Quiz.php'>Take This Quiz</a><br />\n";
echo '</td></tr>';
}
?>
</td>
</tr>
</table>