This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Declare the Connection Credentials | |
$servername = 'localhost'; //or IP address for DB hosted elsewhere | |
$username = 'root'; | |
$password = ""; | |
$database = "ussd"; | |
$dbport = 3306; | |
// Create connection | |
$db = new mysqli($servername, $username, $password, $database, $dbport); | |
// Check connection, if there is an error end the USSD connection |