PHP provides a built-in function mysql_query() to achieve these tasks along with others. This chapter will explain how to use the mysql_query() function to do these operations.
The for loop, also known as iteration statement is generally used when you know the number of iterations in loops.
The difference between cookies and session is cookies store information at client side (visitors computer) whereas session stores information at server side.
In PHP, the $_GET and $_POST superglobals are used to collect the form data in the form of arrays. Let us go through these methods in order to understand how to use and learn the differences between the two.
PHP Session variable is a way to store information in variables that can be used in multiple pages or across the website during that visit of a user. The session stores information on the server side unlike cookies,
A PHP function is a block of code that may take one or more input parameters, executes and may return a value. You can use functions repeatedly in PHP programs.
PHP provides all type of operators that are required to perform operations and can be categorized into following: Arithmetic Operators, Comparison Operators, Logical Operators
Two types of functions are available to include path of the file in PHP. The first is include function while the other is require.
The PHP ‘If’ comes into action wherever options come. Where there are more than one options for anything for any matter we have to decide.
The Switch/case is a type of decision-making statement in PHP. Use PHP Switch/case statement option when you have many options and have to execute one of those.