0 comments / July 15, 2014

Easiest way to select all checkbox in javascript / jquery

This simple snippet can be used to select all checkbox. Both jquery and javascript method given, choose whatever suits to you.


0 comments / July 11, 2014

PHP Email Validation - SMTP, MX Record and Regular Expression

We sometimes need to validate the integrity of given email id. The easiest way we have is just sending a verification mail to the given email id and asking the user to click on the link in that email. But other than that we have three more ways, that is, SMTP Email Validation, MX Record Check and Regular Expression&


0 comments / June 29, 2014

Convert text to image in php

Basic idea behind converting text to image is to avoid spammers grabbing important data like emails, phone numbers etc. This simple php script convert text to image dynamically, Just have a glance at this script.


0 comments / June 27, 2014

Find the difference between two dates

This small php snippet will help you to find the difference between two given dates


2 comments / June 24, 2014

Prevent submit on page refresh

Reloading the page after form submission in POST method, browser will always display a warning whether it can resend same data to server or not. For average user, this information is bit technical and it might confuse him.


1 comments / June 21, 2014

Protect index files from hacking

Hacking is a very broad topic to discuss. Here I'm going to discuss about one kind of attack that is mainly targeted on website's index files


0 comments / June 19, 2014

mysql_fetch_array() expects parameter 1 to be resource

When retrieving data from mysql tables sometimes we might have got this error: mysql_fetch_array() expects parameter 1 to be resource. This warning tells us, we are passing an empty result variable for processing.