0) { $query = "select * from `news` where `id`='$id'"; $row = mysql_fetch_assoc(mysql_query($query)); echo "

".$row['short']."

\n"; echo "

Posted by ".$row['who']." at ".$row['when']."

\n"; echo "

".str_replace("\n", "
\n", $row['story'])."

\n"; } else { $query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc"; $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { echo "

".date("Y-m-d", $row['TS'])." - ".$row['short']."

\n"; if($row['story'] != "") echo "

[ "._("Full Story")." ]

\n"; } } echo "

[ "._("Go Back")." ]

\n"; showfooter(); ?>