PHP Posts

Thumbnail of a tutorial on:

Display array data in HTML elements using PHP

In this article we are going to use the 'foreach' PHP function to loop through arrays and display their data inside HTML elements.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to get the current URL and filename using PHP

In this article we are going to fetch the current URL and filename to load a specific stylesheet to a specific page using PHP.

Read the article
Thumbnail of a tutorial on:

How to Create a Database Insert Update Delete Data Using PHP and MySQL

Learn the basics on how to crate databases and tables, how to insert, delete, and update data in a database using PHP and MySQL

Read the article
Thumbnail of a tutorial on:

Upload Display and delete images from the server and the database using PHP

In this tutorial you'll learn how to upload images to the server, store their information in a database, retrieve and display them on a web page, and finally, how to implement functionality to delete images when necessary.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Send Email in PHP using PHPMailer and Gmail

Want to send emails with PHP effortlessly? You're in the right place! In this post, we'll show you how to use PHPMailer and Gmail's SMTP server to make sending emails an easy job.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Creating dynamic web pages using PHP and MySQL

In this tutorial we are going to create a simple shop so you can see how we can output dynamic content from the database, and display it accordingly to the query that we make.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to properly validate an uploaded image file using php

In this post i m going to show you how to be sure, that the uploaded file is an image. We are going to properly validate an uploaded image using php. The code that we are going to write can easily used in a live project

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Coding a registration system with email verification using php and mysql

Welcome to our guide on building a secure login and registration system with email verification using PHP and MySQL. In this tutorial, we'll show you how to create a robust authentication system that ensures the safety of user accounts while providing a seamless user experience.

Read the article
Thumbnail of a tutorial on:

How to create a simple php and mysql pagination

Hi everyone, let's create a simple pagination using php and mysql. In this tutorial we are going to query a mysql database table with php. And we are going to create a pagination action to split the content in many pages.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to storing likes and dislikes in a json file

We are going to create a like and dislike system with PHP and JavaScript. But instead of storing the likes or dislikes in the database we are going to store them in a json file.

Read the article
Thumbnail of a tutorial on:

How to generate a random secure password using php

Hello everyone, in this tutorial we are going to see how to generate a good and strong random password using php. We are going to write two functions. The first function will return a fixed length password, and the second will return the length that we specify.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

PHP explode function explained in plain English

Hi everyone, in this tutorial i am going to explain as simple as i can how the explode() php function works. We are gonna see real world examples on how we make use of the explode() function.

Read the article
Thumbnail of a tutorial on:

How to create update read and delete data in a json file with php

Hello everyone, in this tutorial we are going to see how to create a CRUD back-end application using php. CRUD stands for create, read, update, and delete. So we are going to insert, update, read, and delete users in a JSON file.

Read the article
Thumbnail of a tutorial on:

Coding a secure login system with php and mysql

Learn how to create a secure login system using PHP and MySQL. This comprehensive tutorial covers the development of key features, including user registration, login, forgot password functionality, and account management.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to send multiple checkbox values to php

In this post i will explain as plain and simple i can, on how to send the values of multiple checked checkboxes to the server and fetch them with php. I have put together an example, a live demo, which you can check out.

Read the article
Thumbnail of a tutorial on:

How to create write read and delete files in php

As a php programmer you will use very often the php built-in filesystem functions to create, read, write, and delete files. So in this tutorial we are going to see, and explain in plain English how we do this.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Get selected image type from folder with php

Hey everyone, In this tutorial we are going write a small application to grab and display images from a folder based on their extensions. Check out the live demo to get an idea on what we are going to code.

Read the article
Thumbnail of a tutorial on:

How to display form errors with php

In this tutorial we are going to see how to display form errors under every input field with php. We are going to have a simple validation, checking for empty fields. If a field is empty we are going to display an error message under it. If both fields have values then we are going to show a success message.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to get random items from an array in php

In this tutorial we are going to see how to pick random items from an array. Let's say you have an array full of usernames and you want to pick a random user as a winner for your give away. Let's see how we do this.

Read the article
Thumbnail of a tutorial on:

Using php Ajax and a dropdown select menu to filter database data

In this tutorial we are going to use a select menu, to filter items displayed in the screen. In web development terms this is a full stack tutorial. That means that we are gonna use html, css, javascript, Ajax, php, and mysql to create this little app.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Edit json files with php

Most of the time when we build a website, we are gonna have a folder with a bunch of json files inside. Those json files are containing information that usually is spread throughout the whole website. So in this tutorial we are going to build a php application with which we are going to fetch the data from the json files and edit them.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Zip files with php by coding a real world application

Zip is a popular compress format that we use very often to move files through the internet. We use zip files as attachments in our emails, we get a zip archive when we download files from a website, or we zip files so they take less space in our computer.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Register and login application with php and json

In this tutorial we are going to put together a register and login application. But instead of registering the user in a database, we are going to put his username and password in a JSON file

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to calculate the days between two dates in php

With php we can calculate the days between two dates, and check if a 30 days account has expired or not. We are going to work with the DateTime object to do the work.

Read the article
Thumbnail of a tutorial on:

How to create an upload progress bar with javascript

In this full stack tutorial we are going to see how to track the progress when we upload a file to the server. We are going to use AJAX, and PHP to get the task done.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to display JSON data in a dynamic HTML table with PHP

In this article, we are going to fetch the data from a JSON file, and we are going to put them inside a dynamic HTML table with PHP. And as most of the time you can download the free source code.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to create a JSON file from a MySQL database using php

In this article we are gonna fetch data from a MySQL database table and we are going to store them in a JSON file using php.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Sending dynamic HTML email using php

In this article we are gonna see how to send html and css structured emails. We are gonna see how to read an entire web page and send the page using the mail function.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to store, update and remove data in a php session

Hello everyone in this article we are gonna see how to create a products session, like the ones we use in a shopping cart.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to fetch database data as arrays or objects in php

In this article we are gonna see how we can turn the data fetched from the database, into a php array or an object. In the following paragraphs we are going to use the fetch methods that the mysqli_result object provides us, to create arrays and objects from the database data.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to insert JSON data in the database

In this article we are going to grab data from a JSON file and insert them in the database. The data stored in the JSON file are some products for a bike store.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

Writing mysql prepared statements

Prepared statements are going to make our transactions with the database safer and more secure. Every time a user's input interacts with the database we have to use prepared statements to avoid any risk of an SQL injection.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to upload multiple files with PHP

In this post we are going to see, how easy it is to select and upload multiple files to the server with php

Read the article
Thumbnail of a tutorial on:

Storing form data in a json file with php

We are going to see how to store messages from a contact form in a JSON file using php.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to encode and decode JSON data using php

In this post we are going to deal with JSON and PHP. We are going to see how to encode and decode JSON values using the php json_encode and json_decode functions.

Read the article Watch Video 🎬
Thumbnail of a tutorial on:

How to write an image upload and validation class

In this tutorial we are going to use the object oriented programming - OOP style, and write an imageUpload class to upload an image using php.

Read the article