No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I want to not include the penalties from Sunday , only Monday - Saturday only using this borrowdate,returndate, and currentdate Thankyou! $borrowdate = new Datetime($row['date_return']); $returndate = new Datetime($row['due_date']); $currentdate = new Datetime(); $fines = 0; if($currentdate > $returndate){ $days = $borrowdate->diff($returndate ?? $currentdate, true)->days; echo "₱ ". $fines = … |
|
I want to see the penalties updating, but it's only see after you click the return button and wait for one day again that it will show the penalty. <?php $user_query=mysqli_query($dbcon, "select * from borrow LEFT JOIN member ON borrow.member_id = member.member_id LEFT JOIN borrowdetails ON borrow.borrow_id = borrowdetails.borrow_id LEFT … |