Hi there!
I'm trying to get a way to display an if command if it can't find any content from a specific category
I.e if it looks in a category for content and nothing appears it will display "Sorry, no albums found"
here is my current code
<?
if ($cdid == "") {
$sql="SELECT * FROM cdreview WHERE cdartist LIKE '" . $_GET["cdartist"] . "%'ORDER BY cdartist ASC";
$result=mysql_query($sql);
$ncount=0;
echo "<font size=1> </font>";
while ($myrow=mysql_fetch_array($result)) {
if ($ncount<100)
{
$ncount=$ncount+1;
$cdreview = str_replace("\'", "'", $cdreview);
?>
Any idea?
Hope you can help :queasy: