How to delete multiple records in PHP

Below are step by step procedure on how to do this simple process. you will need a text editor like notepad++ localhost servers wamp mamp xamp a working pc SQl Table Structure for this tutorial

Fetch the data from database and create checkbox . Checkbox name attribute is an array.

On Submitting the […]


How to Create Php Calendar

Awesome Php calendar is fully hard coded in php making full use of php native functions. I have named it awesome because I find this technique very generic and when it can be upgraded and lots of functionalities can be added. This is the first release of this mini project and licensed under MIT(open source). […]


How to Get Current Page URL using PHP

This php snippet prints current page url. It accepts a Boolean parameter as TRUE/FALSE which acts as a flag for displaying query string. It returns the current site URL.

How to use this function.


Change Date Format mm/dd/yyyy to yyyy-mm-dd in PHP

One of the common situation I come across often, is to change the date format from mm/dd/yyyy to yyyy-dd-mm. It just take two lines of code to get the results.

You can use an alternative approach also.


Get IP Address Using PHP

There’s a lot of approach to get ip address in php.  But here’s how I code when I need to get clients Ip address.

Here’s an alternate approach as well,  but I am not sure about this as HTTP_X_FORWARDED_FOR can be anything a client chooses to set, whereas REMOTE_ADDR is considerably harder to fake.