MySql query ORDER BY two columns

January 24, 2014

You can order by multiple columns in mysql. The first order take first preference and then second one get next preference in mysql. Example: Statement lik: will sort both columns descending. If specified each column ASC or DESC, first order will take first preference and then second one get next preference in mysql

jquery add overlay layer to a div or body

January 21, 2014

First create the css properties for the overlay layer:  

PHP obfuscated or hide part of the email address

January 17, 2014

I wrote my own function for one of the project to display first 3 characters and last characters before the @. In between the first and last 3 characters, put in 3 star (*). So, this is how it looks like

How to prevent single words or long URL’s From Breaking Out of Container

January 17, 2014

Css try: word-wrap: break-word; For more robust browser support: -ms-word-break: break-all; word-break: break-all; /* Non standard for webkit */ word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto;

jQuery datePicker enable select past dates

January 14, 2014

How to enable the past dates of jQuery inline datePicker? You need to make sure that the minDate option is null. example: Full example: