I have looked around and still can\'t find how to list all my tables in a database. is it possible with MySQLi?
Thanks.
Using PHP 5.5 or later, a simple solution is using PHP's built-in array_column() function.
$link = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME); $listdbtables = array_column(mysqli_fetch_all($link->query('SHOW TABLES')),0);