assassingod
07-06-2003, 08:51 AM
Hey;
I need some help with a new poll hack im working on.
If someone would kindly explain how to show which option a user voted for in a poll (like display a template)
Here is my current code;
$uservoteinfo=$DB_site->query_first("SELECT userid FROM pollvote WHERE userid=$bbuserinfo[userid] AND pollid='$pollid'");
if ($uservoteinfo[userid]==$bbuserinfo[userid]) {
eval("\$usesrvoteinfo = \"".gettemplate("poll_usersvoteinfo")."\";");
} else {
$usersvoteinfo = '';
}
It doesn't work, and I didn't think it would when I used it, but I tried it anyway.
I know vB3 does this by displaying a * next to option, but I need something like that for vB2:D
Thanks.
I need some help with a new poll hack im working on.
If someone would kindly explain how to show which option a user voted for in a poll (like display a template)
Here is my current code;
$uservoteinfo=$DB_site->query_first("SELECT userid FROM pollvote WHERE userid=$bbuserinfo[userid] AND pollid='$pollid'");
if ($uservoteinfo[userid]==$bbuserinfo[userid]) {
eval("\$usesrvoteinfo = \"".gettemplate("poll_usersvoteinfo")."\";");
} else {
$usersvoteinfo = '';
}
It doesn't work, and I didn't think it would when I used it, but I tried it anyway.
I know vB3 does this by displaying a * next to option, but I need something like that for vB2:D
Thanks.