![]() |
vote modifikation
i'd like to check if someone is allowed to vote or not and to write the votenumber into a db
my code looks at moment so: PHP Code:
|
SELECT answers FROM
have to be: SELECT count(answers) AS counted FROM and then... if ($entry['counted'] < $vbu |
why?
it should be just one line per poll so theres no count needed if someone votes the answernumber should be set to answernumber +1 |
i am not that much good in php... but just seeing through the code its like
if(condition) { } else { } else { } when does the 2nd else is called... sorry if its a poor question... |
oh there coulde be something
thx i'll look at home no the if else else is ok PHP Code:
all the code is shit |
man you need to use $vbulletin->db->blah instead of $db->blah
Try changing those to what I gave and see if it works. |
All times are GMT. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|