![]() |
Quote:
My site draws a winner every day using vB 4.1.11 and has done so with every version from 4.0.4 forward. |
Hi,
I'm running vB 4.0.6 so I'm also running an older version of Raffles. When a member entered the Raffle. They get a DB error and this is what I get in email... Database error in vBulletin 4.0.6: Invalid SQL: SELECT * FROM raffle WHERE startdate <= 1336313626 WHERE enddate > 1336313626 ORDER BY id DESC; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE enddate > 1336313626 ORDER BY id DESC' at line 3 Error Number : 1064 Request Date : Sunday, May 6th 2012 @ 09:13:46 AM Error Date : Sunday, May 6th 2012 @ 09:13:46 AM Script : http://www.twofoursix/forum/raffles.php?do=main Referrer : http://www.twofoursix.com/forum/raffles.php IP Address : 77.101.70.149 Username : superjoe Classname : vB_Database MySQL Version : The member appears in the list of members who entered. How can I resolve this error please? thanks |
Quote:
|
how can I make all users able to see raffle rules instead of just allowed usergroups? I want to be able to tell them how to join the usergroup in the rules.
|
Quote:
Put the instructions about how to join in the raffle description. |
Quote:
v4.1.12 PL1 I understand yours does, but there's a glitch or something going on. I did just fine up until this last draw, and it just didn't. |
Quote:
Database error in vBulletin 4.0.6: Invalid SQL: SELECT * FROM raffle WHERE startdate <= 1336589218 WHERE enddate > 1336589218 ORDER BY id DESC; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE enddate > 1336589218 ORDER BY id DESC' at line 3 Error Number : 1064 Request Date : Wednesday, May 9th 2012 @ 01:46:58 PM Error Date : Wednesday, May 9th 2012 @ 01:46:58 PM Script : http://www.tappletop.com/forum/raffles.php?do=main Referrer : http://www.tappletop.com/forum/raffles.php IP Address : 94.168.182.181 Username : Johnjeffs3 Classname : vB_Database MySQL Version : This is when the member clicks the button to enter. ???? |
Quote:
Code:
if($_REQUEST['do'] == 'main') Code:
$oldentryopt = "AND enddate > $timenow"; Code:
$oldentryopt = "WHERE enddate > $timenow"; If that's not the problem then turn off Show Raffles Already Drawn in raffle settings. I'll have to dig into it to find out why your system has problems with that code. |
Hi,
The code you mentioned to change was already correct in my existing raffles.php file.... Code:
else Quote:
|
Quote:
|
All times are GMT. The time now is 11:35 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:
|