06-04-2024
This commit is contained in:
12
editable-bootstrap-table/inc/db_connect.php
Normal file
12
editable-bootstrap-table/inc/db_connect.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/* Database connection start */
|
||||
$servername = "localhost";
|
||||
$username = "root";
|
||||
$password = "";
|
||||
$dbname = "phpzag_demos";
|
||||
$conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error());
|
||||
if (mysqli_connect_errno()) {
|
||||
printf("Connect failed: %s\n", mysqli_connect_error());
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user