lib forgotten
This commit is contained in:
18
www/2024/lib/mysql_connect.php
Normal file
18
www/2024/lib/mysql_connect.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?
|
||||
//phpinfo();
|
||||
$servername = "db";
|
||||
$username = 'kalskeborec';
|
||||
$password = 'Kalskeborec1!23$';
|
||||
$db = 'kalskeborec';
|
||||
|
||||
// Create connection
|
||||
$conn = new mysqli($servername, $username, $password, $db);
|
||||
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
//echo "Connected successfully";
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user