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 Origin_AS, COUNT(DISTINCT Prefix) AS prefixes FROM v_routes_history WHERE PeerName='10.0.2.2' GROUP BY Origin_AS ORDER BY COUNT(DISTINCT Prefix) DESC LIMIT 20;");