mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 04:39:34 +05:30
(refactor): changed connection file path for better security and to fix search results not showing issue
This commit is contained in:
15
connection.php
Normal file
15
connection.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//Database info - (for loclhost)
|
||||
$hostname = "localhost";
|
||||
$username = "root";
|
||||
$password = "";
|
||||
$database = "neosubhamoy";
|
||||
|
||||
//Connect with Database
|
||||
$conn = new mysqli($hostname, $username, $password, $database);
|
||||
|
||||
if ($conn -> connect_error) {
|
||||
die("Database Connection Failed !" . $conn->connect_error);
|
||||
}
|
||||
echo "";
|
||||
?>
|
||||
Reference in New Issue
Block a user