this way i know how to do it, please if you wrote the full script like i have did in below, thank you guys 🙂
<table width="594" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="34" valign="top" bgcolor="#CCCCCC" colspan="5"><?$result = mysql_query("SELECT FROM guystable where id = 2" , $con);
$row = mysql_fetch_row($result);
echo $row[0]."<p align='right'><i>-- " . $row[1]; ?></td>
</tr>
<tr>
<td width="116" height="9"></td>
<td width="52"></td>
<td width="245"></td>
<td width="99"></td>
<td width="82"></td>
</tr>
<tr>
<td rowspan="4" valign="top" bgcolor="#9999FF"><?$result = mysql_query("SELECT FROM guystable where id = 5" , $con);
$row = mysql_fetch_row($result);
echo $row[0]."<p align='right'><i>-- " . $row[1]; ?></td>
<td height="34"></td>
<td></td>
<td></td>
<td valign="top" bgcolor="#996600" rowspan="3"><?$result = mysql_query("SELECT FROM guystable where id = 20" , $con);
$row = mysql_fetch_row($result);
echo $row[0]."<p align='right'><i>-- " . $row[1]; ?></td>
</tr>
<tr>
<td height="92"></td>
<td valign="top" bgcolor="#FFCC00"><?$result = mysql_query("SELECT FROM guystable where id = 12" , $con);
$row = mysql_fetch_row($result);
echo $row[0]."<p align='right'><i>-- " . $row[1]; ?></td>
<td></td>
</tr>
<tr>
<td height="15"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="18"></td>
<td></td>
<td></td>
<td valign="top"><? mysql_close($con);
?></td>
</tr>
</table>
Brij wrote:
if you have defined the number code for each of the location, say 1 for header, 2 for footer, and like.
select guys from guytable where location in (1,2,3,4,5) limit 5.
you will get 5 names from the each of the location.
is that what you want ?
first guy is in header
second guy in in footer
third is in middle
forth is in side