SUW CONNECTORS
// Step 1 In PHP, a variable is declared using the $ sign followed by the variable name.
<?php$servername = “localhost”;$username = “username”;$password = “password”;
// Step 2 Create connection
$conn =new mysqli($servername,
$username, $password);
// Step 3 Check connectionif ($conn->connect_error) { die(“Connection failed: “ . $conn->connect_error);}
// Step 4 Create database$sql = “CREATE DATABASE myDB”;if ($conn->query($sql) === TRUE) { echo “Database created successfully”;} else { echo “Error creating database: “ . $conn->error;}$conn->close();?>