Changeset 931 for trunk/www/ports.php


Ignore:
Timestamp:
Oct 4, 2002, 8:59:58 AM (18 years ago)
Author:
kevin
Message:

Print when index was last updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/ports.php

    r928 r931  
    1010
    1111        <p>
    12         This form allows you to search the current index of DarwinPorts software.
     12        This form allows you to search the current index of DarwinPorts software. <br />
     13        <i>Index last updated: </i>
     14        <?
     15                $sql = "SELECT UNIX_TIMESTAMP(activity_time) FROM darwinports.log ORDER BY UNIX_TIMESTAMP(activity_time) DESC";
     16                $result = mysql_query($sql);
     17                if($result && $row = mysql_fetch_row($result)) {
     18                                echo date("d-M-Y H:i:s", $row[0]);
     19                }
     20        ?>
    1321        </p>
    1422       
Note: See TracChangeset for help on using the changeset viewer.