0
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "data1";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
 die("Connection failed: " . $conn->connect_error);
} 
else{
 echo "Connected successfully";
 }

//retrieve table list

?>