Concatenate all values of a column in mysql

Mysql group concatenate select to string In select query if you want to concatenate all values of a column(all cells) in a single string with a separator. Then you can use a pre...

php pass session to new window

Whenever we open new window with jQuery or JavaScript often it will clear all old session. For example you have a dashboard screen after user login and here have a link to open new...

How to get verified to Google Adsense?

Google adsense is the best and most secure way to make money online. It is completely managed directly by Google. Before you apply for Google Adsense (at www.google.com/adsense) to...

Jquery run code after .each() loop

If we have list of item or array of response and running .each() to parse them. After finishing loop we want to execute some code or any other function then we can use simple loop...

Mysql match first n characters

Many time we have a series of number in rows and we want to match only first 4 or 5 numbers in that row then we can use mysql inbuilt function. For example I have a doctor table...

How to add extra data with ajax serialize form

In normal Ajax post we send form in serialize way, but suppose you want to send some extra value to you php page then you can do as below. data: $('#youForm).serialize() +...

jquery autocomplete highlight match

Highlight jQuery Autocomplete results that match the text already typed I am assuming that you already implemented jQuery Autocomplete . Now you want to just highlight the part of...

Php Apache Solr executing query using eDisMax

Solr edismax boost query Before starting keep in mind that SolrDisMaxQuery class was not part of the 2.0.0 release. But still you can download the current master branch from...