Death-Watch.com http://www.death-watch.com Death-Watch.com - Designed by one man, "owned" by another, free and accessible to all. {$date} EOM; if ($_GET[start]) $start=$_GET[start]; else $start=0; $limit=10; $query="select * from news order by postdate desc limit $start,$limit"; $result=mysql_query($query); while($row=mysql_fetch_assoc($result)){ $picture_filename=''; $picture_query="select filename from pictures where newsid='{$row['id']}'"; $picture_result=mysql_query($picture_query); if(mysql_num_rows($picture_result)){ $picture_row=mysql_fetch_array($picture_result); $picture_filename=$picture_row['filename']; } $desc=nl2br($row[preview]); $postdate=rssDate($row[postdate]); $story = "<![CDATA[{$row[headline]}]]>\n"; $story.= "
{$desc}
]]>
\n"; $story.= "\n"; $story.= "{$postdate}\n"; $story.= "{$row[author]}\n"; $story.="
\n"; /* $story ="\n

".$row[headline]."

"; if($picture_filename) $story.=""; $story.="posted ".$row[postdate]." by ".$row[author]."
\n
\n"; $story.="".nl2br($row[preview])."
\n

\n"; $story.="
$menu
\n
\n
\n



";*/ echo $story; } echo "
"; ?>