Connect to multiple MySQL databases with PHP

Within the project sometimes requires using multiple MySQL databases. It may be the existing database from another project or the new one.

To handle this with PHP requires to create separate connections for each database and use the connection accordingly while manipulating data in MySQL database.

Connect to multiple MySQL databases with PHP

Read more

Implement Multi-language support to Website with PHP

Setting up multi-language support is a good way to attract the new users to your website but there is no direct way to implement it to the website.

You need to write extra code and update existing hardcoded text content to enable multiple languages.

For maintaining this you can either create separate files or use MySQL table.

In this tutorial, I will create simple examples to show multi-language support on the website.

Implement Multi-language support to Website with PHP

Read more

Autosave data after specific time with jQuery and AJAX

On WordPress, you have noticed that while writing a blog post it will autosave the post as a draft after a specific interval.

In this tutorial, I am creating a similar type of functionality with jQuery and AJAX. Where I check for any value update in the input element if it is then set an interval of 5 seconds.

Send an AJAX request to save data when the interval gets completed.

Autosave data after specific time with jQuery and AJAX

Read more