$result = mysql_query("SELECT * FROM navi WHERE online = 'true' ORDER by id_kat ASC;");
while($array = mysql_fetch_array($result))
{
?>
.php?site= echo "$array[name]"; ?>&&kat_id= echo "$array[id]"; ?>&&cont=prev" $check=$array['name']; if ($site!=$check) { ?>class="naviLink" } else { ?>class="naviLinkOver" } ?>> echo "$check"; ?> } ?> |
switch($cont)
{
case "prev":
$resultNews = mysql_query("SELECT * FROM news WHERE online = 'true' AND archiv = 'false' ORDER by date_added DESC;");
while($arrayNews = mysql_fetch_array($resultNews))
{
?>
$datum = explode("-", $arrayNews[date_added]);
$datum = "$datum[2].$datum[1].$datum[0]";
echo "$datum" ?> - echo "$arrayNews[headline]" ?>
echo "$arrayNews[preview]" ?> if ($arrayNews['body'] != NULL ) {?>... " class="naviLinkOver">[mehr] } ?>
} break; case "full": $artID = $_GET['artID']; $resultNews = mysql_query("SELECT * FROM news WHERE id='$artID'; "); $arrayNews = mysql_fetch_array($resultNews); ?> echo "$arrayNews[date_added]" ?> - echo "$arrayNews[headline]" ?>
echo "$arrayNews[body]" ?>
" target="_blank" class="naviLinkOver">Hier gehts zur Web-Seite
" class="naviLinkOver">[zurück] break; } ?>
echo "$arrayNews[preview]" ?> if ($arrayNews['body'] != NULL ) {?>... " class="naviLinkOver">[mehr] } ?>
} break; case "full": $artID = $_GET['artID']; $resultNews = mysql_query("SELECT * FROM news WHERE id='$artID'; "); $arrayNews = mysql_fetch_array($resultNews); ?> echo "$arrayNews[date_added]" ?> - echo "$arrayNews[headline]" ?>
echo "$arrayNews[body]" ?>
" target="_blank" class="naviLinkOver">Hier gehts zur Web-Seite
" class="naviLinkOver">[zurück] break; } ?>