How do I display out all the information in a database (All tables and records) using PHP? I read displaying tables as HTML table but how do I do it for all the tables?
I tried the example here: http://davidwalsh.name/html-mysql-php
But it shows the table names, how do I also display all the values?
Thanks In Advance
you can use the recursive function to display the tree Structure of your database.
Here is the a sample code from http://webcodingeasy.com/PHP/Simple-recursive-function-to-print-out-database-tree-structure
Okay got it .. try this
If you want to pull all
tables
with thevalues
inmysql
, you can use the following code:I am using this and works fine in
mysql
, formysqli
you need to tweak it a very little.Hope this helps.