Related Articles
Export to Excel Using PHP and Mysql
Below simple program will export mysql data values to excel sheet without using any PHP libraries. Export to Excel Using PHP and Mysql Note: IF you get errors or in excel all the data is in one column, then instead t tab space use, comma ‘,’.
Open a Url onload of a Website or Pagee
You can able to load a webpage while accessing a particular Website using Javascript, see below for code. <script> function openWindow() { window.open(‘http://www.google.com‘,’a’,’height=300,width=600′); } </script> <body onload=”openWindow();”> </body>
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”;}