Tutorials

How to Pass Optional Paramater to a Function in PHP

This tutorial tackles on how to pass optional parameter to a function in PHP. When we create a function and set a parameter to pass to this function, the function expects the parameter to be passed and will throw an error if none given. For instance that you wanted to pass an optional parameter to a function, hope you'll find this tutorial helpful.

How to Display a Loader/Loading Image while Page Loads

This tutorial tackles on how to display a loader or loading image while a page or webpage is loading using jQuery. Providing a loader while page loads is done so that the visitor/user is aware that the page is still loading especially if your site is heavy. jQuery is a javascript library that makes you use javascript easier.

How to Get the Average of One Column in MySQL Database using PHP

This tutorial tackles on how to get the average of one column in mysql database using PHP. There are instance that we wanted to get the average of one column for reporting purposes like average sales, expenses etc. Normally, we get the sum of the column then we divide it by number of rows but actually there is a sql function that determines the average of one column.

C# - Simple Registration And Login Application

Learn on how to create a Simple Registration And Login Application using C#. C# syntax is highly expressive, yet it is also simple and easy to learn. C# is very simplified for the beginners. It is a general-purpose language designed to make all things simpler. It contains several classes that support any C# platforms, like game development. It has a friendly environment for all new developers.

Login and Register using PDO in PHP

This tutorial tackles on how to create a simple login and register using PDO extension in PHP. PDO stands for PHP Data Objects and as per official site description, defines a lightweight, consistent interface for accessing databases in PHP. PDO is the most recommended extension nowadays to interact with database because of many features like preventing SQL injections, prepared statements, etc.

How to Highlight Matched Keyword in Search using PHP

In this tutorial, you will learn on how to highlight matched search keyword using PHP. For the users to be aware why a certain result match to a searched keyword, we need a functionality that highlights matched word to the keyword. In this tutorial, I'm going to use preg_filter() function in order to achieve that functionality.