Location: PHPKode > projects > Pheed - the newsfeeder > pheed-the-newsfeeder/printitem.php3
<?
include "pheedini.php3";
print $lang["disclaimer"];
$conid=dbconnect ($dbname,$username,$password);
$result = dbquery($conid, "SELECT id,date,title,text,image,caption FROM $dbtable WHERE (id='$newsid')");
list($id,$date,$title,$text,$image,$caption)=dbfetch($result);
$id=mysql_result($result,0,"id");
$date=mysql_result($result,0,"date");
$title=mysql_result($result,0,"title");
$text=mysql_result($result,0,"text");
$image=mysql_result($result,0,"image");
$caption=mysql_result($result,0,"caption");
$date=substr($date,0,16);
$dat1=explode(" ",$date);
$dat=explode("-",$dat1[0]);
$date="$dat[2]-$dat[1]-$dat[0]</b> <b>$dat1[1]";
print $lang["updated"]?>
<b> <i> <? print $date ?> </i></b>
      <p><font size="+1"><? print $title ?></font><br><b><font size="-1"><? print $date ?></font></b></p>
      <p>
      <?print $text ?>
        </p>

<?
if ($image!=""){
print "<center><img src=\"foto/$image\" border=\"1\" $image>";
print "<br>$caption</center>";
};
?>
Return current item: Pheed - the newsfeeder