PHP Tutorial

Loop between Two Dates in PHP

Submitted by admin on

There are times that you want to loop between two dates in PHP. If you have, for example, formatted the date like m/d/Y, you cannot simply use it in while loop statement.

Before you can loop between two dates in PHP, you need to convert it first to Unix timestamp using the strtotime function.

Here’s an example of how to do it:

Save Radio Button Value Using PHP/MySQL

Submitted by argie on
This Tutorial will teach you on how to save radio button value using PHP and MySQL. To start this tutorial let's follow the steps below.

Creating Our Database

First we are going to create our database which stores our data. To create a database: 1. Open PHPMyAdmin. 2. Click Databases. 3. In the "Create new database" box, type "radio". 4. The click Create button 5.

How to Create Profile Information Page in PHP/MySQL

Submitted by argie on

Good day everyone, I am going to create my new tutorial called "Simple Profile Information Page". In this tutorial you can integrate my previous code on How to Create Registration Page in PHP/MySQL and on How to Create Login Page in PHP/MySQL.

To start with, follow the steps below.

How to Create Login Page in PHP/MySQL

Submitted by argie on
Related code: How to Create Secure Login Page in PHP/MySQL. Yesterday I posted a tutorial on how to create a registration page using PHP/MySQL. To make some follow up with my registration page tutorial, I decided to create another tutorial on how to create a login page using PHP/MySQL. The Features of my login page contain input validation using PHP session.

How to Create Registration Page in PHP/MySQL

Submitted by argie on
Related code: How to Create Secure Registration Page in PHP/MySQL This is a simple tutorial that will teach you on how to create a simple registration form using PHP/MySQL with JavaScript for input validation. This tutorial will not teach you on how to create a good design but rather to give you knowledge on how to create a fully functional registration form.

Creating our Table

First we are going to create our database which stores our data. To create a database: 1.

PHP Operators

Submitted by admin on

In every programming language, operators play an important role. It can be use in comparison statements like IF statement, loops statement like WHILE loops, assigning a value to a variable and a lot more.

PHP String Variables

Submitted by admin on

A string variable is used to manipulate any character stored in a variable you declared.

This chapter will discuss common function you can use to manipulate string variables.

Some common functions are:

  • The Concatenation Operator
  • The strlen() function
  • The strpos() function

The concatenation operator is very useful to combine two string values.

Example: