Forum Moderators: coopster
<?php print $row['category']; ?></strong></td>
<td align="center"><?php print $row['main_line']; ?></td>
<td></td>
</tr>
<?php
$resultl = @mysql_query("select first_name, last_name, phone, email, category from directory, categories where department = categories.category_id and department= " . $row['category_id']);
while ($rowl = mysql_fetch_array($resultl)) {
?>
<tr>
<td width="340" valign="top" class="bodytext"><?php print $rowl['first_name']; ?> <?php print $rowl['last_name']; ?></td>
<td width="162" valign="top" class="bodytext" align="center"><?php print $rowl['phone']; ?></td>
<td width="162" valign="top" class="bodytext" align="center"><a href="#" onclick='<?php print despam($rowl['email']); ?>'><?php print $rowl['email']; ?></a></td>
</tr>
<?php
}
}
?>
$resultl = @mysql_query("select first_name, last_name, phone, email, category from directory, categories where department = categories.category_id and department= " . $row['category_id']."ORDER BY order ASC); //or DESC sort $resultl = @mysql_query("select first_name, last_name, phone, email, category from directory, categories where department = categories.category_id and department= " . $row['category_id'] . " ORDER BY order ASC");