SWDW_Fruit_Store/indexes/ConnectDB.php
2025-06-06 17:14:52 +08:00

16 lines
511 B
PHP

<?php
$servername = "localhost"; // if use uic server, change to stuweb.bcrab.cn
$username = "swdw"; // change to your account
$password = "MbMXJSxXZbzJ3aZc"; // change to your account
$db = "swdw"; // change to your database name
// Create connection
$conn = new mysqli($servername, $username, $password, $db);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
//echo "Connected successfully";
?>