if (mysql_num_rows($result) > 0) {
while($row = mysql_fetch_assoc($result)) {
$date = $row['date'];
list($day, $month, $year) = split('[/.-]', $date);
//echo "Date from database =";
//echo $row["date"];
//echo '
';
//echo "Date after format =";
//echo $year ;
//echo '
';
if ($lastYear !== $year) {
echo "";
echo '
| Title | Author | Category | Date Submitted | View |
|---|