Any way to count() on a different php page?

I am making a guestbook, and on the page guestbook.php i can use…

<? echo count($record); ?>

and it will show how many entries there are on the page.

Is it possible to put <? echo count($record); ?> on say index.php to count how many entries there are on guestbook.php?

I’m pretty new to php so try and dumb things down for me! cheers!


Is guestbook a file/DB or page? What exactly is the $record coming from. You can put it on your index page but depending on how the guest book records are stored will dictate how you retreive that information.

Sponsor our Newsletter | Privacy Policy | Terms of Service