If you want to Compare datetime between two table while selecting record then,
In this function I am using two table First table using from Controller “AllClassController” in this controller, I am taking all data from $slug, and $id. After that I am taking trainer_email and update_at, after that when get value then Other table using Model “Payment” and using where function and taking “$payments_new” and using foreach function and taking which value who required. Same process for Other “$payments_old”.
This is Output “New Enrolled Students Details” and “Old Enrolled Students Details”.
Latest posts by rajeshkumar (see all)
- AWS Error: Access denied by EC2 Instance Connect - December 4, 2023
- How to get Blackduck Trial version? - December 3, 2023
- PHP ionCube Error: cannot be decoded by this version of the ionCube Loader - December 2, 2023