First of all, it was a great help from this forum to find a solution to "count" the nbr. of subscribers of a Chronoform (see earlier topics on this), thanks for this Fredrik and Bob!
Now I would like to explore if it is possible to relate the "counter" to a selected "Wedstrijddatum"
If selected date 1, it starts counting from nbr. 1 onwards
But if selected date 2, it should again start counting from nbr 1..
The reason for asking:
In this way I can keep all the data in the db-table and make a full csv download for a whole competitionseason.
I'v have taken the liberty to post this as a new topic, to have it separated from the previous one
The selected box is "Wedtrijddatum" , where the members can select the date, eg 01-01-2010, 01-02-2010 etc
This selected date is also kept in the db-table
This is the base code for the (row)counter
Now I would like to explore if it is possible to relate the "counter" to a selected "Wedstrijddatum"
If selected date 1, it starts counting from nbr. 1 onwards
But if selected date 2, it should again start counting from nbr 1..
The reason for asking:
In this way I can keep all the data in the db-table and make a full csv download for a whole competitionseason.
I'v have taken the liberty to post this as a new topic, to have it separated from the previous one
The selected box is "Wedtrijddatum" , where the members can select the date, eg 01-01-2010, 01-02-2010 etc
This selected date is also kept in the db-table
This is the base code for the (row)counter
<?php
$db =& JFactory::getDBO();
$query = "SELECT COUNT(*) FROM " . $db->nameQuote("jos_chronoforms_CK_PITCHenPUTT");
$db->setQuery($query);
$total = $db->loadResult() + 1;
JRequest::setVar('total', $total, 'post');
?>