sql commnad in a for loop !
| From: | Septic Flesh | Date: | Tue, 18 Jun 2002 16:54:21 +0000 |
| Subject: | sql commnad in a for loop ! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102735@lists.php.net to get a copy of this message | ||
I wanna make the following sql query which looks a bit complicated., and put
it in a for loop too for all days from 1 to 31.
==================================================
for $day=1 until $day=31
{
count how many records (rows) there are in the tracker table,
without counting rows that contain the same "user_id" value,
when the day=$day.
}
==================================================
how do i CALL then each result to display them in a web page ?
Can something like that happen, or shall I repeate the same query 31 times ?
:(
Thanks in advance..
--
~~~~~~~~~~~~~~~~
Sapilas@/dev/pinkeye
~~~~~~~~~~~~~~~~