PHP Snippets

Different Ways of Populating HTML Select Options from MySQL Database using PHP, JS, and jQuery Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to Populate the HTML's Select box with options from the MySQL Database. The main purpose of this tutorial is to provide the students and beginners with a reference for learning some techniques for building an application using PHP, MySQL DB, JS, and jQuery Library. Here, snippets and scripts are provided to give you a better understanding of the possible ways to achieve the said goal of this tutorial. A sample source code zip file is also provided and is free to download.

Null Coalescing in PHP Snippet and Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to use Null Coalescing using PHP Language. The tutorial aims to provide IT/CS students and new programmers with a reference for learning the different techniques and usage of the PHP built-in methods and operators. Here, snippets are provided for better understanding, and a sample source code zip file is also provided and is free to download.

Getting the Date and Datetime Difference Between Dates in PHP Snippets

Submitted by oretnom23 on

In this article, I will show you how you get the Difference between two (2) Dates or DateTime in PHP Language. The tutorial aims to provide IT/CS students and new programmers with a reference to enhance their knowledge and skills for developing an application using PHP Language. Here, snippets of some explanations are provided. A sample working source code zip file is also provided and is free to download.

Using PHPs implode() and explode() Built-in Functions

Submitted by oretnom23 on

In this article, you will learn how to use the PHPs implode() and explode() built-in functions. The tutorial aims to provide the IT/CS students and new programmers a reference for widening their knowledge and enhancing their PHP Programming capabilities. Here, snippets that demonstrate the usage of the said PHP functions are provided.

Creating a DateTime Time Ago like Social Networking Sites in PHP Tutorial

Submitted by oretnom23 on

Introduction

In this tutorial, I will teach you How to create a Time Ago Feature in PHP for your sites. This feature is like you've seen in some other famous social networking sites such as Facebook. This feature represents how old the post, blog, or article on your site is. The tutorial aims to provide IT/CS students or those who are new to PHP Language a reference or guide for learning some different methods or techniques using the said programming language.