/ Published in: PHP
Outputs MySQL server stats : uptime, threads, questions, slow queries, opens, flush tables, open tables, queries per sec (avg).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $db_host = ""; $db_user = ""; $db_pass = ""; $db_name = ""; ## ## sqlstats() ## -> Get mysql stats and display them ## function sqlstats() { ## Connect to mysql and gather data foreach($stats as $key => $value) { echo $value."<br/>"; } ## Data gather complete, close MySQL connection } ?>