Hi,
one Question.
I tried to show the total members say "Yes" on the vbCMS from vbdesigns.de
This is my code:
Code:
$anzahlsql = "SELECT COUNT(*) AS anzahl FROM vb4_eventattendance WHERE eventid = 1";
$anzahlquery = mysql_query($anzahlsql) or die("MySQL-Error : ".mysql_error());
$teilnehmeranzahl = mysql_fetch_object($anzahlquery);
$teilnehmer = $teilnehmeranzahl->anzahl;
and to show on a template:
Code:
$templater->register('teilnehmer', $teilnehmer);
and in this Template
Code:
{vb:raw teilnehmer}
Works fine, but only for the EventID 1.
How can i get this informations for the next Events 2,3,4,5