I am trying to only show the title one time but want it to be part of the MySQL code so that the title only shows one time. Is there a way this can be done?
In other words I only want <ul>Other and <li> to show once and if there are no results in other then nothing would display. Anyone know how to do this?PHP Code:<li>Other
<ul>
<?php
include('config.php');
$result = mysql_query("SELECT * FROM users WHERE reseller_full='da' ORDER BY company ASC") or trigger_error(mysql_error());
while($row = mysql_fetch_array($result)){
foreach($row AS $key => $value) { $row[$key] = stripslashes($value); }
echo "<li><a href=/client/" . nl2br( $row['folder']) . "/index.php>" . nl2br( $row['company']) . "</a></li>";
}
?>
</ul>
</li>







Bookmarks