I'm using WordPress Version 5.9.2 for my blog.after i am attempting to incorporate a database connection in a single of my plug-in which isn't working correctly.Which didn't obtain the database connection.But in most other directory you'll be able to make use of a common connection.So,now i'm using manual coding in most of my plug-in file.Any methods to obtaining a common connection in most of my plug-in.Assist me to please...

you need to study much more about wordpress

eg:

<?php
$table = "wp_table";
$data = $wpdb->get_results("SELECT * FROM $table WHERE 1=1", ARRAY_A);
?>

mtss is a common connection