If a member signs into my site then on sql it inserts the members name , password , date as now().
I created another item on my table called datetr. I want it must calculate +30days from the actual date they sign in (now()) and update the datetr.
Basically I am giving them a 30 day trial and then they need to be blocked if they have not paid.
Maybe you have a better idea to do this.
Loading
Hemant SrivastavaPosted Feb 4, 2013, 6:42 PM
$sql_insert = "INSERT into `users`
(`full_name`,`user_email`,`pwd`,`date`,`datetr`,`users_ip`,`activation_code`,`user_name`
)
VALUES
('$data[full_name]','$usr_email','$sha1pass', GETDATE(), GETDATE() +30, '$user_ip','$activ_code','$user_name'
)
";
If it helps you, pls mark it accepted.
shabeer shaikPosted Jan 30, 2013, 11:13 AM
(`full_name`,`user_email`,`pwd`,`date`,`datetr`,`users_ip`,`activation_code`,`user_name`
)
VALUES
('$data[full_name]','$usr_email','$sha1pass',now(),now().AddDays(30),'$user_ip','$activ_code','$user_name'
)
";
How do i use it here
Santhosh Kumar JayaramanPosted Jan 30, 2013, 2:05 AM