Related Articles
How to Check the Last Day in Month
Check the Last Day in Month $startDate = “20150624”;$endDate = “20150722”;$startDate = strtotime($startDate);$endDate = strtotime($endDate);$dayLength = 60 * 60 * 24;$checkDateRange = ($endDate – $startDate) / $dayLength;$datesStartMonth = date(‘t’, $startDate);if ($checkDateRange > $datesStartMonth) {echo $error = “Date range should be with in one month”;}
Provisional headers are shown in Google Chrome Browser Debugger
Recently I worked on a PHP webservice project and I saw this Provisional headers are shown in Google chrome browser and Opera browser.I digged some research on Google and find out mixed responses and at last I got it fixed by removing window.print() in script. Check out all the fixed Provisional headers are shown answers […]
Decimal(5,3) in Mysql is always 99.999
The maximum value for decimal(5,3) is 99.999, it means 5 digits with 3 digits after decimal, and whenever you try to insert or update more than 99.999 value it is automatically capped to 9.99 in mysql. This Try decimal(5, 2) Decimal(5,3) is used for financial values or less than 100% values. If you want to […]