I would like to post a solution for the following queries which are important for the programmer to execute the PHP script from command line. (more…)
The simple way to check the given date in between the two dates or not. The following script is very simplified for better usage. Just pass the three parameters to the function then it will check and give you the message.
The following script will give the example to calculate the number of days between two dates, just convert the two dates to time format by using the strtotime() function. and then find the difference, which you will get in seconds. just convert the seconds into days, months and years. Just follow the above link to get more information about the strtotime.
warning mysql_fetch_array() expects parameter 1 to be resource, boolean given in php is the common error displayed while doing any php projects. If there is any syntax error in sql query it will display the error. Follow the following steps to overcome the error, (more…)