-
-
Save sohag1192/dfee7d2d22dd44cfcfa4cd236c3c6e7a to your computer and use it in GitHub Desktop.
Database Connection in Php
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 | |
$server= "localhost:3325"; | |
$username= "root"; | |
$password = ""; | |
$connection = new mysqli($server,$username,$password); | |
if($connection->connect_error){ | |
echo "Database Not Connected."; | |
}else{ | |
echo "Database Connected."; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment