Re: Question..
| From: | Gabor Hojtsy | Date: | Thu, 10 Jan 2002 20:47:18 +0000 |
| Subject: | Re: Question.. | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-8162@lists.php.net to get a copy of this message | ||
Please ask support questions on our mailing lists.
You can subscribe to one at http://www.php.net/support.php
Goba [one webmaster@php.net]
----- Original Message -----
From: HomeyShorty@aol.com
To: webmaster@php.net
Sent: Thursday, January 10, 2002 4:25 AM
Subject: Question..
I was wondering if you could please help me with a problem I am having...I was wondering if you
knew how to make a dynamic counter of rows in a database sorting by name
ie http://www.evobb.com/index.php?page=download
?
The problem here is that the download counter @ the end of the page is not dynmaicall. Im saying
it "select * from blah where name='download.zip'"and im counting the rows but
see if i add more downloads i have to go in and add another querywhat i want to do ispass the result
of ie "select filename from blah" to an array and somehow count the matches thereby giving
a counter and making it dynamic like for each...
($key as $blah){
$shit = mysql_num_rows($key[numofdowns]);
print $blah ."downloads num = $shit";}
But i beleive there is no function for counting matches in a array, DYNAMICALLY any help
appreciated thanx...