Hello,
I use a SELECT to get all the rows from the table tblnavigation. The rows are: idnav, idnavcat, prognav, progurl
$rsnav = mysql_query($query_rsnav, $concat) or die(mysql_error()); $row_rsnav = mysql_fetch_assoc($rsnav);
The idnavcat stands for the navigation category. Now i want to filter on that "idnavcat"; and show the results per category in a table.
<?php do { ?>
<tr>
<td width="10%"><div align="center"><?php echo $row_rsnav['idnav']; ?></div></td>
<td width="70%"><?php echo $row_rsnav['navprog']; ?></td>
<td width="11%"><a href="nav_adj.php?id=<?php echo $row_rsnav['idnav']; ?>"><img src="images/edit.png" alt="" width="32" height="32" border="0" /></a></td>
<td width="8%"><p><a href="nav_del.php?id=<?php echo $row_rsnav['idnav']; ?>"><img src="images/delete.png" alt="" width="32" height="32" /></a></p> </td>
</tr>
<?php } while ($row_rsnav = mysql_fetch_assoc($rsnav)); ?>
I know it's possible with multiple selects; but i know it's slower. Has something to do with "while do" ? Or array ? Not sure; newby here ! :-)