Jump to content

Featured Replies

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...

Bumping this to the top...

Were you ever able to find or create a solution for this?

  • 5 weeks later...

I Try to find this to. Add number of records in a database.

I try this but ... no.... :cry:

{number=$stats"['total_database']"}

 

  • 4 weeks later...

+1

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...

Has anyone been able to create a Statistics block for a database page?

  • Author

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

  • No registered users viewing this page.