-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection.php
More file actions
30 lines (24 loc) · 775 Bytes
/
connection.php
File metadata and controls
30 lines (24 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
// Azure MySQL connection parameters
$host = 'museumhub.mysql.database.azure.com'; // Azure MySQL server name
$username = 'aidilVMdemo'; // Azure MySQL username
$password = 'AydeelVM110'; // Your MySQL password
$dbname = 'museumhub'; // Name of the database you imported
$condb=mysqli_connect($hostname,$user_sql,$pass_sql,$dbname);
if(!$condb)
{
die("failed");
}
else
{
# echo "success";
}
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
</head>
</html>