Deleting Multiple Records with mysqli in PHP Using Form Input

Today I will discuss an example of Deleting Multiple Records with mysqli in PHP Using Form Input. Suppose we have a database table and we want to allow the user to delete some or all of the records. Since user will access the application through a web interface, the delete option should be available on …

Working with phpMyAdmin – Creating Users and Assigning Privileges

In this article on Working with phpMyAdmin – Creating Users and Assigning Privileges, I will explain how to create a user for a database and how to assign privileges to that user. Also developed in PHP, phpMyAdmin is a tool that allows the users to manage MySQL database. Basically, it is a free software tool …

MySQLi Prepared Statement and its Benefits

Today I will discuss MySQLi Prepared Statement and its Benefits. Prepared statements provide a better way to execute SQL queries. Apart from being safe, the prepared statements allow the reusability of code. Since the statement need to be prepared once and can be executed any number of times by just replacing the parameters, these statements …

Working With Directories in PHP

Working With Directories in PHP involves creating a directory, changing directories, listing the content of a directory, and also deleting a directory. PHP provides several in-built functions that enable us to perform operations on directories. The following section discusses some of these functions. Functions for Working With Directories in PHP To begin with, we create …

A Brief Description of move_uploaded_file() Function in PHP

This article presents A Brief Description of move_uploaded_file() Function in PHP. For the purpose of uploading a file, we use the move_uploaded(_file() function. Basically, it takes two parameters as the input. While the first parameter indicates the name of the uploaded file. Similarly, the second parameter indicates the location to which the file needs to …

Example of Uploading Files in PHP

An Example of Uploading Files in PHP is shown here. Applications and Use of Uploading Files in PHP Because many dynamic applications provide features for users to upload files, it is one of the most essential functions of a web application. Significantly, many CMS (Content Management Systems) allows administrators to upload images as well as …