Hello everyone, I'm trying to adapt the old Vote Reward system to php 5.6 and above, I'm stuck somewhere.:grr:
After voting, the cash is loaded into the account without any problems, but when the time comes for the second vote, it votes forever without specifying the time.
The problem is that after the second vote, it doesn't report time again, and the reward is added by voting constantly.
Exemplary Vote System=https://forum.ragezone.com/f458/vote-reward-system-v0-3-a-798843/
After voting, the cash is loaded into the account without any problems, but when the time comes for the second vote, it votes forever without specifying the time.
The problem is that after the second vote, it doesn't report time again, and the reward is added by voting constantly.
Exemplary Vote System=https://forum.ragezone.com/f458/vote-reward-system-v0-3-a-798843/
Code:
[COLOR=#666666]USE [CabalCash][/COLOR]GO
/****** Object: Table [dbo].[votes] Script Date: 09/15/2011 01:03:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[votes](
[accName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
[lastVoteDate] [datetime] NOT NULL,
[voteLink] [int] NULL,
[ip] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
[COLOR=#666666]alter table CashAccount add votes int not null default 0[/COLOR]
Attachments
You must be registered for see attachments list