Quote:
Originally Posted by mitch84
hi, the sql data don't run, I can have them in a text file please? because when I click on link in "community" this database error appear, but in acp mod work fine, what's wrong?
thx
|
There's no reason it shouldn't run on the main page (no matter where it's linked from) because both admincp and raffles use the same sql query with only one minor difference.
In both admincp and raffles if "Show Raffles Already Drawn" is set to 'Yes':
Code:
"SELECT * FROM " . TABLE_PREFIX . "raffle ORDER BY id DESC"
In raffles if "Show Raffles Already Drawn" is set to 'No':
Code:
"SELECT * FROM " . TABLE_PREFIX . "raffle WHERE enddate > $timenow ORDER BY id DESC"