I have a php page that is selecting just 1 column from an Oracle table. When I display this info, how do I display only 1 item if the selected info is the same? For example, I have a release_nbr column for each entry (row). This column may have the same info for multiple rows. How do I only display the info 1 time if it has multiple rows? Right now, it is displaying the info multiple times as shown below:
Release: 3.0.2
Release: 3.0.2
Release: 3.0.2
Release: 3.0.2
Release: 3.0.2
Release: 3.0.2
Release: 3.0.2
my code for my loop looks like this:
for ($i=0; $i< $D->numrows; $i++) {
$release_nbr = $D->results[“RELEASE_NBR”][$i];
?>
<tr>
<td width=”10%” valign=”top”>Release:</td>
<td valign=”top”><a href=”search_results.php”><? echo $release_nbr ?></a></td>
</tr>
Thanks!