I am trying to return all MySQL tables from a database and exclude them, for example, with users. I use the following code to print table names:
function findTables() { global $conn; global $DB; $query = "SHOW TABLES FROM $DB "; $showTablesFromDb = mysqli_query($conn, $query); while($row = mysqli_fetch_row($showTablesFromDb)) { echo "<li><a href='admin.php?show={$row[0]}'>{$row[0]}</a></li>"; } }
Ganga source share