hatrickpatrick Posted September 2, 2007 Share Posted September 2, 2007 My webhosts cpanel is down for maintenence, including phpMyAdmin, and I need to view my database structure... Is there any function in PHP to display the database structure (like the "Export" function in PHPMyAdmin)? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/67655-solved-php-function-to-display-a-database-table-structure/ Share on other sites More sharing options...
trq Posted September 2, 2007 Share Posted September 2, 2007 You could run a SHOW TABLES query from within php, more a mysql question though really. There is no specific function that does what your looking for. There is however a bunch of mysql functions that will get you the data you want. Take a look at the mysql functions in the manual. Quote Link to comment https://forums.phpfreaks.com/topic/67655-solved-php-function-to-display-a-database-table-structure/#findComment-339846 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.