[Resolved] How to Restrict to Complete Lessons?
Hi, Sorry But I am Again Here….
I want to Restrict Students to Complete Only 1 Lesson Per Day, Can you help me with some scratch code?
I have tried as Follows :
Query : $mydate = $wpdb->get_var( “SELECT completion_date FROM
lesson_id=’$prepost'” // 2013-09-30
$pfx_date = get_the_date( $d ); //Current Date 2013-10-01
$datetime1 = $mydate;
$datetime2 = $pfx_date;
$interval = $datetime1->diff($datetime2);
echo $interval->format(‘%R%a days’);
But got error that First Value should be DateTime.
What to Do Now?
- The topic ‘[Resolved] How to Restrict to Complete Lessons?’ is closed to new replies.