Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

AJAX search from MySQL database in PHP example

By Faruque Ahamed Mollick

AJAX (Asynchronous JavaScript And XML) is very popular on modern websites. On Google, Facebook, YouTube you will see a huge use of AJAX. It is not a programming language, but a .... Read More

Set cookie and retrieve it on web page in PHP

By Faruque Ahamed Mollick

A cookie in PHP used to store the small amount of data on client side. The cookie actually a small text file that stores small data, nearly about 4KB. Cookies are generally used t.... Read More

Create PHP function with optional parameter or argument

By Faruque Ahamed Mollick

I have already discussed PHP function and told you how to create a function in this article – What is a function in PHP and why we use it? There I have also shown you how t.... Read More

Get the current page URL in PHP

By Faruque Ahamed Mollick

Here in this tutorial, I am going to show you another code snippet which will show you how to get the current page URL using PHP. Well, there is a super global variable available i.... Read More

Why we use PHP __autoload() magic function?

By Faruque Ahamed Mollick

__autoload in PHP is called a magic function. This function is so useful. But many of new PHP programmer may not know what this function actually does and when they should use this.... Read More

How to display PHP source code on the web page?

By Faruque Ahamed Mollick

Whenever you open a PHP file with your server path, it runs the PHP code. It will never display you the PHP source code. Whenever you put some PHP code inside that file, it will ru.... Read More

What is a function in PHP and why we use it?

By Faruque Ahamed Mollick

A function in PHP is a self-contained block of code that use to performs a specific task in the program. In another word, we can say that PHP function is a piece of code that can .... Read More

Protect website from SQL Injection in PHP

By Faruque Ahamed Mollick

From the name SQL Injection, many of you can guess that someone injects SQL into your PHP application. Well, obviously it is not good to let a user inject SQL code inside your web .... Read More