alarik149 Posted March 14, 2006 Share Posted March 14, 2006 I relally need to get the number of tables into a specific database.how can I do that? Link to comment https://forums.phpfreaks.com/topic/4939-how-can-i-get-the-number-of-tables-in-a-database/ Share on other sites More sharing options...
shocker-z Posted March 14, 2006 Share Posted March 14, 2006 [code]$query = "SHOW TABLES"; $result = mysql_query($query); $num_of_tables = mysql_num_rows($result); [/code]should do the trick :) Link to comment https://forums.phpfreaks.com/topic/4939-how-can-i-get-the-number-of-tables-in-a-database/#findComment-17404 Share on other sites More sharing options...
alarik149 Posted March 14, 2006 Author Share Posted March 14, 2006 shocker-z you are so omni-present:))tanks a lot,it works,and I think at the moment you guys had a lot of me,I just finished the script I was working for so I'll take a small break:).See you soon guys:) Link to comment https://forums.phpfreaks.com/topic/4939-how-can-i-get-the-number-of-tables-in-a-database/#findComment-17407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.