Home » Programming

How to set session for specific time

How to convert multi-dimention array key to string type

Set PHP session timeout or session expire automatically process after 10 minute using easy PHP code. PHP session will timeout default once given time interval over.

  Read More »

PHP remove element from array by value

How to convert multi-dimention array key to string type

Remove element from php array by value in just 3 simple line code. PHP array functions are cool for doing this process. For removing element from array we need to provide key, but when we want to delete…

  Read More »

How to work with Ajax PHP and JSON

jQuery Ajax PHP

Example for get data from database in json format with use of php and ajax. Get json data from server in 2 easy steps. If you are beginner for Ajax and PHP with jQuery, you will found this…

  Read More »

MySQL query for finding values in a comma separated string

How to get data from two tables in MySQL

MySQL query for finding values in a comma separated string. Use REGEXP feature in your MySQL query for finding value in comma separate string. Given example query can use for find given value/values in comma separated string.

  Read More »

MySQL get comma separated values in result

How to get data from two tables in MySQL

Get id or field value in comma separate string. Use GROUP_CONCAT for getting result in comma separate string. Function useful when you want to use id or field value in comma separate or with other character separate string.

  Read More »

PHP access variable dynamically

How to convert multi-dimention array key to string type

Access variable value dynamically using variable variable. A variable variable takes the value of a variable and treats that as the name of a variable. We can run time access any variable dynamically by $$(variable variable).

  Read More »

Get form input element value by jQuery and javascript

How to debug error for third party jquery plugin

Get input element value using jQuery different methods and core javascript. Example for get input value by name attribute or by input id/class given below.

  Read More »

Uploading both data and files in one form using ajax

jQuery Plugin

Solution founded for: Sending image and input data in single ajax call, Image and text data in ajax post, Uploading both data and files in one form using ajax, jQuery ajax multipart form with $_FILES and $_POST, $_FILES…

  Read More »

Simple tooltip with jquery and css

How to debug error for third party jquery plugin

Simple jQuery and css code for create tooltip with html content. No need to add any plugin just simple js and css code. You can able to use html tags, text, image etc., in tooltip.

  Read More »

Get referrer value in php and javascript

jQuery-PHP

The referrer is the page URL that originally generated the request for the current page view or object. For accessing referrer value in PHP and javascript use $_SERVER and document object.

  Read More »