# Which would get this done fastest, php or mysql?

**URL:** <https://forum.kirupa.com/t/which-would-get-this-done-fastest-php-or-mysql/178783>\
**Category:** programming\
**Created:** [February 14, 2006, 7:48am UTC](https://forum.kirupa.com/t/which-would-get-this-done-fastest-php-or-mysql/178783 "2006-02-14T07:48:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreakSheep](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@FreakSheep](https://forum.kirupa.com/u/FreakSheep)\
**Post date:** [February 14, 2006, 7:48am UTC](https://forum.kirupa.com/t/which-would-get-this-done-fastest-php-or-mysql/178783/1 "2006-02-14T07:48:53Z")

</div>

Hey. I’m counting how many people are currently surfing on each page at the current time. I have my query that returns where each ip is located at the current time. What I’m trying to do it count how many people are on each page, so i pretty much have to count how many results have which page they’re on.

My questions is…

How should i go about doing this? Should i use mysql to use a COUNT() on each different ip, or should i put it in an array or something and count how many ones have each page?

Thanks.

\_naaman
