TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shabeer shaik
NA
40
19.8k
Check date on mysql and allow access
Jan 31 2013 6:39 AM
please help with the following:
datetr= now() + INTERVAL 30 DAY ( THIS IS DONE WHEN THEY REGISTER )
$result = mysql_query("SELECT `id`,`pwd`,`user_name`,`en1`,`approved`,`user_level`,`datetr` FROM users WHERE
$user_cond
AND `banned` = '0'
") or die (mysql_error());
$num = mysql_num_rows($result);
// Match row found with more than 1 results - the user is authenticated.
if ( $num > 0 ) {
list($id,$pwd,$user_name,$en1,$approved,$user_level,$datetr) = mysql_fetch_row($result);
I need help here.... if the datetr is greater than now() then it will alow access.
if(!$datetr > now()) {
//$msg = urlencode("Your 30Day Trial has expired. Please make payment of R100 to proceed");
$err[] = "Your 30Day Trial has expired. Please make payment of R100 to proceed";
//header("Location: login.php?msg=$msg");
//exit();
}
Reply
Answers (
0
)
How to Bind Dropdown list to each other in PHP
Type juggle in php