Hallo, liebe Leute,
hab das pragma 0.1.8. Wenn es keine News gibt, ist das Teil trotzdem zu sehen, heisst, die Blocküberschrift und die Fusszeile "[ Stories Archive ] [ News schreiben ] [ Suchen ]"
Wie muss denn (vielleicht diese Stelle???) des Blocks geändert werden, damit nicht zu sehen ist bei Leersein?
$qry = "SELECT sid, cat.catid, aid, s.title, time, DATE_ADD(time, INTERVAL 2 DAY), now(), hometext, bodytext, comments, s.counter, topic, informant, notes, acomm, cat.title AS title1
FROM ${prefix}_stories AS s LEFT JOIN ${prefix}_stories_cat AS cat ON s.catid = cat.catid
WHERE (ihome='0' OR s.catid='0') AND time <= now() $querylang
ORDER BY s.time DESC
limit 0,$storynum";
#print $qry;
[color=red]$result = sql_query($qry);
if(!$result) {
return;
}[/color]
$content ="<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\"><tr valign=\"top\">";
Danke, wenn jemand helfen kann....
Hallo !
Versuche das einmal so :
$result = sql_num_rows(sql_query($qry));
if($result<1) {
return;
}
Nicht getestet, einfach mal ausprobieren.
:-* Herzlichen Dank, das klappt super!