Re: return the amount of records in a mysql databace

From: Date: Sun, 22 Sep 2002 16:19:33 +0000
Subject: Re: return the amount of records in a mysql databace
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-117180@lists.php.net to get a copy of this message
Look through the MySQL functions. I seem to recall that there is a function for just about anything, and all you really want to do is find how many rows are in all the tables in a particular database. Thus, a couple of loops is all you need, with the outer one looping through each table (obtained from a function) and the inner one doing a select count(*) or a mysql_num_rows(). Happy hacking. Chris Jeff Bluemel wrote:
this is only going to return records in a table, and not in a database
select count(*) as n from ... where ... -----Original Message----- From: Philip J. Newman [mailto:newmanpj@philipnz.com] Can someone point me in the right direction to find out how i can return
the
amount of records in a mysql databace ?


« previous php.general (#117180) next »