DrTrans Posted September 7, 2009 Share Posted September 7, 2009 $figureofdays = $apprentamnt / "30"; $prorate = $figureofdays * "17"; print"<b><font size=\"4\">View Totals:<font></b><br>"; print"<b>Security Deposit:</b> $security<br>"; print"<b>Rental Amount:</b> $apprentamnt<br>"; print"<b>Pro-Rated Amount:</b> $prorate<br>"; print"<b>Pet Fee:</b>$petfee<br>"; $total = $security + $prorate + $petfee; print"<b>Collect this amount:</b> $total<br>"; What im trying to do here is. a replace the "30" and repace the "17" Is there away i can make it say how many days are in the month? and how many days left from the the current date. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/173448-solved-figuring-how-many-days-left-in-month/ Share on other sites More sharing options...
ignace Posted September 7, 2009 Share Posted September 7, 2009 print date('t') - date('j'); Quote Link to comment https://forums.phpfreaks.com/topic/173448-solved-figuring-how-many-days-left-in-month/#findComment-914300 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.