".$row['filename'].""; $previewtxt="(".$dlink.", $docid, ".formsize($row['size']).", ".$row['mime'].")"; $prevmime=$row['mime']; $prevfilename=$row['filename']; $prevfilepath="$DATA/".$row['catid']."/".$row['docid']; if (!is_null($row['fcatid']) && !is_null($row['fdocid'])) { $prevfilepath="$DATA/".$row['fcatid']."/".$row['fdocid']; } $sres=mydo($DB,"select docid,filename from docs where catid=$prevcatid and rm=0 ". "and docid>$prevdocid order by docid limit 1",1); $nextlink=""; $snumrows =mysqli_num_rows($sres); if ($snumrows==1) { $srow = mysqli_fetch_assoc($sres); $nextlink="NEXT"; } $sres=mydo($DB,"select docid,filename from docs where catid=$prevcatid and rm=0 ". "and docid<$prevdocid order by docid desc limit 1",1); $prevlink=""; $snumrows =mysqli_num_rows($sres); if ($snumrows==1) { $srow = mysqli_fetch_assoc($sres); $prevlink="PREV"; } echo ""; } } ?>
  
  



no preview avalible