| Current Path : /var/www/html/mmishra/indem/pks-ec/studentinfo/ |
| Current File : /var/www/html/mmishra/indem/pks-ec/studentinfo/main3.inc.bak |
<?php
$tbl = 'information';
$today = date("Y-m-d");
//$rs = mysql_query("select * from $tbl where status='online' and expdate > '$today' order by lastdate desc");
$rs = mysql_query("select * from $tbl where status='online' order by lastdate desc");
if ($rs) {
echo "<ul>";
while($o = mysql_fetch_object($rs)){
$rowid = $o->rowid;
$title = $o->title;
$lastdate = $o->lastdate;
$attachments = explode(",",$o->attachments);
echo "<li><p>$title<br>
<b>(Last Date: $lastdate)</b><br></p>
<p align='right'>Download Details ";
$i = 0;
foreach ($attachments as $attachment) {
$i++;
echo "<a href='pdf/$attachment'><font size=2>$i</font></a> | ";
}
echo "</p></li><br>";
}
echo "<br></ul>";
}
?>