php mysql insert

Insert Data Into MySQL Using MySQLi and PDO After a database and a table have been created, we can start...

php mysql create table

A database table has its own unique name and consists of columns and rows. Create a MySQL Table Using...

php json

What is JSON? JSON stands for JavaScript Object Notation, and is a syntax for storing and exchanging...

php if else

Conditional statements are used to perform different actions based on different conditions. PHP Conditio...

php functions

The real power of PHP comes from its functions. PHP has more than 1000 built-in functions, and in...

php forms

The PHP superglobals $_GET and $_POST are used to collect form-data. PHP - A Simple HTML Form The exampl...

php form required

This chapter shows how to make input fields required and create error messages if needed. PHP - Required...

php filter

Validating data = Determine if the data is in proper form. Sanitizing data = Remove any illegal characte...

php filter advanced

Validate an Integer Within a Range The following example uses the filter_var() function to check if...

php file

File handling is an important part of any web application. You often need to open and process a file...

php file open

In this chapter we will teach you how to open, read, and close a file on the server. PHP Open File...

php exercises

You can test your PHP skills with W3Schools' Exercises. Exercises We have gathered a variety of PHP...

php exam

   W3Schools offers an Online Certification Program. The perfect solution for busy profe...

php echo print

With PHP, there are two basic ways to get output: echo and print. In this tutorial we use echo or...

php datatypes

PHP Data Types Variables can store data of different types, and different data types can do different...

php cookies

What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server...

php compiler

PHP Compiler (Editor) With our online PHP compiler, you can edit PHP code, and view the result in your...

ref keyword continue

❮ Java Keywords Example Skip the iteration if the variable i is 4, but continue with the next i...

ref keyword catch

❮ Java Keywords Example If an error occur, use try...catch to catch the error and execute some...

ref keyword case

❮ Java Keywords Example Calculate the weekday name: int day = 4; switch (day) {   case 1:   ...