// Create Database Connection ..
$conn = new mysqli("localhost", "root", "", "my_db");
// run a query on a table from your DB.
$sql_rec = $conn->query("select count(msisdn) from my_colum where id = '$id'"); // Take out the Where Clause if not Needed.
if($sql_rec == true)
{
echo " The Total Number of MSISDNs are " . $sql_rec->num_rows;
}
else
{
echo "Something Bad has happened, We have informed the village Elders.". $conn->connect_error();
}
$conn->close();