Jump to content

Archived

This topic is now archived and is closed to further replies.

alarik149

how can I get the number of tables in a database?

Recommended Posts

[code]$query = "SHOW TABLES";
$result = mysql_query($query);
$num_of_tables = mysql_num_rows($result);  [/code]


should do the trick :)

Share this post


Link to post
Share on other sites
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:)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.