Question..

From: Date: Thu, 10 Jan 2002 03:25:48 +0000
Subject: Question..
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8156@lists.php.net to get a copy of this message
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 <A HREF="http://www.evobb.com/index.php?page=download">http://www.evobb.com/index.php?page=download</A> ? 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...

« previous php.mirrors (#8156) next »