Topics in PHP

PHP MySQL Create Table

In this unit, we will learn how to create a MySQL table. To create a table with the given name, we must have the create privilege for the table. By default, tables are created in the default database, using the InnoDB storage engine. An error occurs if the table exists, if there is no default […]

PHP Complete Form Validation

We can create and use forms in PHP. To get form data, we have to use PHP superglobals $_GET and $_POST. PHP Form Validation With Example In this unit, we see a complete PHP Form with validations. Form validation is one of the major aspects of web development in PHP. There are many vulnerabilities and […]

PHP Form URL/Email

Email and URL address form field validation is easy in PHP. There are inbuilt functions available to validate Email and URL addresses. PHP Form Email Validation There is no way to be 100% sure if an e-mail address is working unless we send an e-mail. What we usually do is check if the syntax of […]

How to Send Emails From PHPMailer Using SMTP

There are lots of methods to send an email in core PHP. There are two most commonly used methods, which are the PHP mail function and the PHP SMTP mailer. Before starting, let’s get some basic information about PHPMailer and PHP mail function. Even more, we will see why PHPMailer is better than the PHP […]

What Is PHP Array Index? Explained With Example

In PHP language, there are different types of arrays like: Indexed array Associative array Multidimensional array We use them according to our requirements. PHP array provides the index number to each of the array elements. These index numbers are used to perform different operations on arrays. For example: According to the index number of the […]