PHP Tutorial

  • Submitted by: 
    Introduction: This tutorial is on how to process data through the GET type in PHP. This is a tutorial in addition to process POST data, found here; https://www.sourcecodester.com/tutorials/php/7622/process-post-data-php.... . HTML Form: Here is a basic POST HTML form... < html > < head >< / head > < body > < form action = 'page.php' method = 'POST' > < input type...
  • Submitted by: 
    Introduction: This tutorial is on how to handle POST data in PHP. POST? POST Data in PHP is data that has been sent behind the scenes from another page, or external source, which can be accessed by the page being sent the information. POST is one of the two methods available to use through HTML Forms. I will be talking about the other method 'GET', in another tutorial. HTML Form: Here is a basic...
  • Submitted by: 
    Introduction: This tutorial is on how to use timestamps properly in PHP and MySQLi to sort information from databases in to the correct order. What's a Timestamp? A timestamp is a data type in PHP and MySQL(i) which is used to hold the correct format of a specified date, time, or date and time together. Database: To enable a database table to hold a timestamp we can first create a database, named...
  • Submitted by: 
    This tutorial will teach you on how to change table row background color when the qty is bellow 10. I use 10 as a default minimum value of qty, you can change it to any number if you want. This tutorial is helpful for thus creating a system that involves products. This is useful because it provides a legend or a prom the certain product is bellow the minimum qty. The admin can easily identify...
  • Submitted by: 
    This tutorial will teach you on how create a script that restore or import database tables using PHP. The feature of this tutorial is it allows the user to restore or imports database backup without using the phpmyadmin panel. To understand more about this tutorial follow the steps bellow Creating Our Database First we are going to create our database which stores our data. To create a database:...
  • Submitted by: 
    This tutorial will teach you on how to count the number of rows in your database table using PHP PDO query. to start with, follow the steps bellow. Creating Our Database First we are going to create our database which stores our data. To create a database: 1. Open phpmyadmin 2. Then create database and name it as "tutorial". 3. After creating a database name, click the SQL and paste the following...
  • Submitted by: 
    Introduction: This tutorial is going to be covering message of the days and banning messages. Database Setup: First we are going to set the database up ready for storing our information, create a new table named "reasons", then give it the following columns of structure: id - INT - 5 Length - Primary Key - Auto Increment (AI/A_I) use - VARCHAR - 255 Length message - VARCHAR - 255 Length...
  • Submitted by: 
    This tutorial will teach you on how to subtract days in a date using PHP. I uses PHP strtotime to subtract days to the current date. Follow the steps bellow to learn this tutorial. Creating Our Form Tis code will display our form with the current date and a textbox that allow you to input the number of days you want to subtract in your current date. Copy the code bellow and save it as "index.php...
  • Submitted by: 
    This tutorial will teach you on how to add days in a date using PHP. I uses PHP strtotime to add days to the current date. This tutorial is useful for thus creating a system that needs a reservation using a range of date. Follow the steps bellow to learn this tutorial. Creating Our Form Tis code will display our form with the current date and a textbox that allow you to input the number of days...
  • Submitted by: 
    This is a continuation of previous tutorial on Save Data To Text File Using PHP . This tutorial will teach you on how to display text file content in our page using PHP. The feature of this program is it allows you to echo or output all the save in our text file. Follow the details bellow on how to this code. Creating Our Script that Display text file Content The code bellow includes the link...

Pages