Jump to content

Recommended Posts

Posted

It would be awesome (and I know a mod could make it and I may just code it myself if necessary) if there was a 'statistics' widget for pages databases. Basically like other statistics widgets where if gives you the number of records (using the databases record lingo) number of comments and latest record.

  • 6 months later...
  • 5 weeks later...
  • 4 weeks later...
Posted

I used a "barbaric" method to display the number

Create a Custom PHP block with this code

$link = mysql_connect("localhost", "user", "pass");
mysql_select_db("base", $link);

$res = mysql_query("SELECT COUNT(1) FROM database-table", $link);
$row = mysql_fetch_row($res);
echo $row[];
And I add the block at the place to show number
 
If someone have better idea.
  • 4 years later...
Posted

Wow! Talk about a blast from the past... Holy hell.

I gave up and just decided it wasn't worth it. Plus I no longer use comments as much as I use reviews.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...