How can I list the tables in my database?
This is how I'm connecting to the database.
echo "Connected:".CreateCheckMySQLConnection()."</br>";
echo "Tables:</br>".ListTables();
function CreateCheckMySQLConnection() {
// Create connection
$conn = new mysqli($GLOBALS['servername'], $GLOBALS['username'], $GLOBALS['password']);
// Check connection
if ($conn->connect_error) {
//die("Connection failed: " . $conn->connect_error);
return false;
} else {
return true;
}
}//End CreateCheckMySQLConnection
Thanks, Luke.