Last active
April 14, 2025 18:47
-
-
Save bikashthapa01/c77ce160952f4b55696b7a57ee11fa9f 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