I'm trying to utilize some existing queries from an old site to a SQL database via PHP and just trying to figure out how to change the PHP code correctly.
My old method was I had a "Connection" file that contained needed variables and then called the database table via:
$query_Break = "SELECT * FROM TB WHERE TB.id='$select'";
$Break = mysql_query($query_Break, $Dbase) or die(mysql_error());
$row_Break = mysql_fetch_assoc($Break);
$totalRows_Break = mysql_num_rows($Break);
Apparently, I should be using the wpdb, but not quite sure how it will change my calls.