Hello,

This is a reply to an e-mail that you wrote on Sun, 20 Jul 2003 at
00:42, lines prefixed by '>' were originally written by you.
> I have a question in regards to finding the total db size and
setting
> it to a variable.
> How would I go about this?

For mysql this will do the trick...

$info = mysql_fetch_array(mysql_query("show table status from
$databasename  = '$tablename'"));
$sizeinMB = $info["Data_length"]/1024/1024;

--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/

          Professional Web Development by David Nicholson
                    http://www.djnicholson.com/

    QuizSender.com - How well do your friends actually know you?
                     http://www.quizsender.com/
                    (developed entirely in PHP)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to