Lid |
|
beetje lang, maar ik zal een stukje laten zien, waar dat in voorkomt:
$querypoll = mysql_query("SELECT * FROM pollvraag ORDER BY id LIMIT 0,1");
$row1 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='1' AND pollid='".$objpoll->id."' ");
$row2 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='2' AND pollid='".$objpoll->id."' ");
$row3 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='3' AND pollid='".$objpoll->id."' ");
//het totaal votes van de antwoorden
$total1 = mysql_num_rows($row1);
$total2 = mysql_num_rows($row2);
$total3 = mysql_num_rows($row3);
$total = $total1+$total2+$total3;
$querypoll = mysql_query("SELECT * FROM pollvraag ORDER BY id LIMIT 0,1"); $row1 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='1' AND pollid='".$objpoll->id."' "); $row2 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='2' AND pollid='".$objpoll->id."' "); $row3 = mysql_query("SELECT * FROM pollvraag WHERE antwoord='3' AND pollid='".$objpoll->id."' "); //het totaal votes van de antwoorden $total = $total1+$total2+$total3;
|