"; $i++; ENDWHILE; ENDIF; ob_end_flush(); ?> "; $i++; ENDWHILE; ENDIF; ob_end_flush(); ?>
Hovedsiden
1"; $result =mysql_query($query); $number = MYSQL_NUMROWS($result); $i = 0; IF ($number == 0) : PRINT "

Menyfeil!

"; ELSEIF ($number > 0) : WHILE ($i < $number): $id = mysql_result($result,$i,"id"); $title = mysql_result($result,$i,"title"); $parentid = mysql_result($result,$i,"parentid"); PRINT " $title [slett]

"; $i++; ENDWHILE; ENDIF; ob_end_flush(); } else { include("docs.php"); ob_start(); $mysql_link = mysql_connect($host,$user,$password); if(!$mysql_link) { echo "Kunne ikke koble til databasen. Try later!"; exit; } $tmp = mysql_select_db($database, $mysql_link); $query = "SELECT * FROM Dresin_Kategori where hovedkat='ja' and id<>1"; $result =mysql_query($query); $number = MYSQL_NUMROWS($result); $i = 0; IF ($number == 0) : PRINT "

Menyfeil!

"; ELSEIF ($number > 0) : WHILE ($i < $number): $id = mysql_result($result,$i,"id"); $title = mysql_result($result,$i,"title"); $parentid = mysql_result($result,$i,"parentid"); PRINT " $title

"; $i++; ENDWHILE; ENDIF; ob_end_flush(); } ?>
Ny hovedkategori


"; } else { } ?>

Dresin

Legg inn nyhet hovedside eller aktuelt


"; } else { } ?> 0) : WHILE ($i < $number): $id = mysql_result($result,$i,"id"); $title = mysql_result($result,$i,"title"); $ingress = mysql_result($result,$i,"ingress"); $tekst = mysql_result($result,$i,"tekst"); $publisert = mysql_result($result,$i,"publisert"); $forfatter = mysql_result($result,$i,"forfatter"); $ingressbilde = mysql_result($result,$i,"ingressbilde"); PRINT "$title
$ingress
Les mer

"; if ($ingressbilde<>0) { print "\"$title\""; } else { } //print"

Aktuelt:
0) : WHILE ($i < $number): $id = mysql_result($result,$i,"id"); $title = mysql_result($result,$i,"title"); $ingress = mysql_result($result,$i,"ingress"); $tekst = mysql_result($result,$i,"tekst"); $publisert = mysql_result($result,$i,"publisert"); $forfatter = mysql_result($result,$i,"forfatter"); $ingressbilde = mysql_result($result,$i,"ingressbilde"); if ($_SESSION['brukerid']) { PRINT "$title
$ingress
Les mer [Slett]

"; } else { PRINT "$title
$ingress
Les mer 

"; } if ($ingressbilde<>0) { print "\"$title\""; } else { } //print"