Hiya
I'm trying to amend this code so that I can have something displayed if there is nothing to show.
else {
$result=safe_query("SELECT * FROM ".PREFIX."news");
$i=1;
while($ds=mysql_fetch_array($result)) {
$strings = $strings;
}
eval ("\$news = \"".gettemplate("news")."\";");
echo $news;
$i++;
unset($related);
unset($comments);
unset($lang);
unset($ds);
}
}
something like:
if $result = 0 then echo 'blah';
Sort of thing :p
Thanks!