You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$mysqli = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME);
if(!$mysqli){
die("Connection failed: " . $mysqli->error);
}
//query to get data from the table
$query = sprintf("SELECT Prefix, COUNT(DISTINCT DATE_FORMAT(DATE_ADD(LastModified, INTERVAL 30 SECOND),'%%Y-%%m-%%d %%H:%%i:%%s')) AS Prefix_Count FROM v_routes_history WHERE PeerName='10.0.2.2' GROUP BY Prefix ORDER BY COUNT(DISTINCT DATE_FORMAT(DATE_ADD(LastModified, INTERVAL 30 SECOND),'%%Y-%%m-%%d %%H:%%i:%%s')) DESC LIMIT 10;");