Morrigan Posted June 18, 2015 Posted June 18, 2015 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. The Old Man, Haku2, AndyF and 2 others 5
hawksfan Posted January 17, 2016 Posted January 17, 2016 Bumping this to the top... Were you ever able to find or create a solution for this?
Morrigan Posted January 18, 2016 Author Posted January 18, 2016 I have not but it's on my to-do list. AndyF and socceronly 2
PersonalMode Posted February 17, 2016 Posted February 17, 2016 I Try to find this to. Add number of records in a database. I try this but ... no.... {number=$stats"['total_database']"}
PersonalMode Posted March 20, 2016 Posted March 20, 2016 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.
ibaker Posted October 24, 2020 Posted October 24, 2020 Has anyone been able to create a Statistics block for a database page?
Morrigan Posted October 24, 2020 Author Posted October 24, 2020 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.
Recommended Posts