Dear All,
on the website for our event i have a few counters made, but now i need some help.
one of my tables has all the field values of all registered participator.
now i have made a counter which can count one field ID and group them by field value, no problem so far. (see below code)
$query = "SELECT * , COUNT(*) FROM jos3e_eb_field_values WHERE field_id = 19 GROUP BY field_value";
if ($result = $mysqli->query($query)) {
/* fetch associative array */
while ($row = $result->fetch_assoc()) {
/*printf ("%s (%s)\n", $row["field_value"], $row['COUNT(*)']);*/
echo "<td>  " . $row [field_value]."</td>";
echo "<td>  " , $row['COUNT(*)'] . "</td>";
echo "</tr>";
now i will tell the problem.
Field ID 19 and 20 have a item that i translate in different languages ( sizes for T-shirts)
for example - Men - L / Heren - L / Herren - L
with the counter above these are counted separate.
is it possible that i merge these items ?
i know the best is to do this on entry but the program i use works on this way (event booking)
i hope someone can help me
grtz from holland
manfred vd Waarsenburg