How to list tables in wordpress plugin development?

I want to show all table names in my plugin development. I know how to do that in core PHP.

I am trying like this:

$mytables=$wpdb->get_results("SHOW TABLES");
 foreach ($mytables as $mytable)
            {
              echo $mytable;
            }

Read more here: How to list tables in wordpress plugin development?

Leave a Reply

Your email address will not be published. Required fields are marked *