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 FROMwp_namaste_student_lessons
WHERElesson_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?
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How to Restrict to Complete Lessons?’ is closed to new replies.