Problems:
Write down the steps of basic PHP-MySQL connection with simple code. 2012,2018
$server_name = "localhost:3308";
$db = "tufan";
$user_name = "root";
$pass = "";
//Create Connection
$conn = mysqli_connect($server_name,$user_name,$pass,$db);
//Check Connection
if(!$conn){
die ("Database problem!!!");
}
else{
echo "Connection Ok";
}
?>
Post a Comment