page_check($username, $_SESSION['password']); mysql_query("set names latin1"); //---------------------------- först Handlare Nr ----------------- $resultat = mysql_query("select id,uname,status from authuser where uname='$username'") or die (mysql_error()); while ($row = mysql_fetch_array($resultat)) { $HandlareNr = sprintf("%04d", $row['id'] ); } $nyheter = 'nyheter'; if ($HandlareNr <= '1') { //---- Inte inloggad, visa nyheterna ---- echo ""; echo ''; echo " //die('
'; echo "Nyheter! / Meddelanden:
"; $result = mysql_query("SELECT * FROM $nyheter") or die('Fel, hittar inte snabb-knapp texter ' . mysql_error()); $i = 0; while ($row = mysql_fetch_array($result)){ $kid[$i] =$row["id"]; $rubrik[$i] =$row["rubrik"]; $text[$i] =$row["text"]; $datum[$i] =$row["datum"]; $visas[$i] =$row["visas"]; echo "
" . $rubrik[$i] . "
"; echo $text[$i] . "
"; $i++; } mysql_free_result($result); echo '

Redigera nyheter

Rubrik Datum />

Rubrik Datum />

Rubrik Datum />

Rubrik Datum />

Logout nu genast, eller senare.