如何在数据库中列出表格?
这就是我连接数据库的方式。
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
谢谢,卢克。