vk | mysqli | jquery autocomplete example | javascript Browser Detection | jquery autocomplete ajax
 


 

Recent blog posts


How to Install PostgreSQL 9.3 on Debian 7 Wheezy

How to Install PostgreSQL 9.1 or the latest PostgreSQL version 9.3 on Debian 7 Wheezy. Basic settings after installation.

How to Create, Read, Update and Delete a Cookie with PHP or Javascript

Detailed examples to Create, Read, Update and Delete a Cookie with PHP or Javascript. Check if cookies are enabled. Manage cookies in all browsers.

PHP and Javascript Internationalization using Gettext and Poedit

gettext is an ideal way for internationalization of software application resources. It extracts terms parsing source code. Poedit is an excellent front end.

How and When To Enable MySQL Logs

Logs is the best place to start troubleshooting. Concerning MySQL (or MariaDB), you need to refer to: General query Log, Error Log and Slow Query Log

Dynamically Bind Params in Prepared Statements with MySQLi

Fortunately, it is possible to use prepared statements with MySQL and PHP using MySQLi extension. But, how to bind params, if their number is variable?

A Workaround to use Secondary icon to jQuery-UI buttons with jQuery-UI-bootstrap

Use of secondary icon in jQuery-UI button with jQuery-UI-bootstrap breaks the button layout. Here is a simple CSS fix as a workaround.

How to Auto Post on Facebook with PHP

Automatically post on Facebook with PHP using Facebook PHP SDK. How to create a Facebook app. Obtain and extend Facebook access tokens. Cron automation.

How to Auto Post on Twitter with PHP

Automatically post on Twitter with PHP using Codebird-php. How to create a Twitter app. A PHP solution with cron automation.

A Simple PHP Class to Create RSS Feed

A Simple PHP Class to Create RSS 2.0 Feed. This post covers RSS version 2.0. In simple words, an rss feed consists of a CHANNEL and channel ITEMS. You can

How to Create a jquery-ui Autocomplete Step by Step

Detailed instructions to create a jquery-ui autocomplete using php and Mysql as server side technologies. Support for prepared statements.

Recent tech tips


Easily Backup Virtualbox disks using Immutable Images

A good solution is to use immutable disks. When a virtual disk marked as immutable, it becomes read-only and differences will be stored in differencing disks

How to check if a Request is an AJAX call with PHP

It is useful to prevent direct access of AJAX calls (from browser address bar). A solution could be the following simple function check_is_ajax()

How to Convert Date or Time to any Timezone and Dateformat with PHP

Date manipulation is a common and useful development task. It was never easy with PHP, until PHP5 and DateTime class. Take a look at date_convert() function

Check if a String represents a Valid Timezone with PHP

Sometimes you want to check if a string represents a valid timezone. Using PHP versions greater than 5.2, timezone_identifiers_list() would be a solution.

How to Detect Browser (and browser version) using JavaScript

Browser (and browser version) detection is an "all time classic" development requirement. jQuery.browser WAS an excellent solution, but it was removed

What is the JavaScript Equivalent of print_r in PHP?

What is the JavaScript Equivalent of PHP print_r() function? In other words, how you can print a javascript object in a way that's readable by humans?

Create a Simple Banner Rotator with PHP in a Minute

PHP shuffle randomizes (shuffles) the order of the elements in an array. You may use this function to create a simple banner rotator.

Easily Create a List of Time Zones with PHP

Sometimes, you want to create a list of available time zones to prompt your user to select his/her time zone. PHP offers timezone_identifiers_list

Determine PHP script Invocation: CLI or by the Web Server

In most cases you can distinguish if a PHP script was invoked from the command line (or Cron) or by the web server, using php_sapi_name()

Replace accented characters with non accented with PHP

Sometimes you need to replace accented characters with non accented, for example when you want to perform an accent insensitive search. See this function.