Counting entries in MySQL dB
Posted: Mon Jun 23, 2008 1:01 am
For those of you who have been following my progress and perhaps helping with my seemingly endless stream of silly questions, you'll know that I'm creating a family tree website using PHP and MySQL. The site can be seen at http://www.didymus.org.uk
What I want to do is create a PHP page which will display by default showing the number of ancestors in my database.
So what I need is some help in coding a page of PHP which will connect to my database, count the number of rows and set this to the string $entries. I will then echo this string.
Any ideas how I can go about this?
Many thanks.
What I want to do is create a PHP page which will display by default showing the number of ancestors in my database.
So what I need is some help in coding a page of PHP which will connect to my database, count the number of rows and set this to the string $entries. I will then echo this string.
Any ideas how I can go about this?
Many thanks.