Hi,
I have the following within some PHP code:
// run the while loop that grabs all the sidebar links for this type
while($r=mysql_fetch_array($readingresult)) {
$id=$r["id"];
$lurl=$r["lurl"];
$ltext=$r["ltext"];
$ldesc=$r["ldesc"];
// make the link for this row
echo "<li><a href='$lurl' target='_blank' title='Click to open link in new window'>$ltext</a> - $ldesc <strong>[<a href='deletelink.php?cmd=delete&id=$id<ext=$ltext'>Delete</a>]</strong></li>";
}
it works fine but I would like to know how I could do a “No Link of this type” message instead of it just appearing blank when there are no result from the $readingresult query.