![]() |
Convert mysql_stat to mysqli_stat help
I need to convert the following code snippets from MySQL to work with MySQLi
Code:
if ($_REQUEST['show'] == 'mysqlstats' || empty($_REQUEST['show'])) { Code:
function si_mysqlstats() { |
Just change mysql_start to mysqli_start, keep in mind that the procedural style of MySQLi requires the connection link as a first argument. Refer to http://php.net/manual/en/mysqli.stat.php
|
Quote:
|
1 Attachment(s)
OK, I got it to work (sort of) using the following code:
Code:
if ($_REQUEST['show'] == 'mysqlistats' || empty($_REQUEST['show'])) { Code:
function si_mysqlistats() { But it doesn't display correctly, see attached image, it is printing above the box instead of in the box. Also, I would like the display to be: Uptime: 49602 Threads: 4 Questions: 850693 Slow queries: 16 Opens: 3099 Flush tables: 1 Open tables: 747 Queries per second avg: 17.150 Instead of the current: Uptime: 49602 Threads: 4 Questions: 850693 Slow queries: 16 Opens: 3099 Flush tables: 1 Open tables: 747 Queries per second avg: 17.150 Any help would be GREATLY appreciated! |
All times are GMT. The time now is 06:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|