Changeset 1014 for trunk/www


Ignore:
Timestamp:
Oct 9, 2002, 9:21:32 AM (22 years ago)
Author:
kevin
Message:

Show total count of portfiles.

Location:
trunk/www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/en/ports.php

    r931 r1014  
    3737                <tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
    3838                <tr>
    39                         <td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles</a></td>
     39<?
     40                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     41                if ($result) {
     42                        $row = mysql_fetch_array($result);
     43                        $count = $row[0];
     44                } else {
     45                        $count = 0;
     46                }
     47?>
     48                        <td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles (<?= $count; ?>)</a></td>
    4049                </tr>
    4150                <?
  • trunk/www/ports.php

    r931 r1014  
    3737                <tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
    3838                <tr>
    39                         <td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles</a></td>
     39<?
     40                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     41                if ($result) {
     42                        $row = mysql_fetch_array($result);
     43                        $count = $row[0];
     44                } else {
     45                        $count = 0;
     46                }
     47?>
     48                        <td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles (<?= $count; ?>)</a></td>
    4049                </tr>
    4150                <?
Note: See TracChangeset for help on using the changeset viewer.