Professional Documents
Culture Documents
PHP ppt2
PHP ppt2
What is PHP?
Egs:
<?php
$x = 100;
echo “You are useless”;
echo $x;
?>
Output:
You are useless
100
Functions of PHP
• Its does everything that can be done by text, html, js and css files with other various
tasks
Output:
30
Once again you are useless.
PHP Superglobal Variables
There are 9 important super global variables are present which can be accessed regardless of the scope. They are as follows
• $GLOBALS
• $_SERVER
• $_REQUEST
• $_POST
• $_GET
• $_FILES
• $_ENV
• $_COOKIE
• $_SESSION
MySQLi Connection using PHP
Syntax:
$variable_name = mysqli_connect(host, username, password, dbname);
Egs:
$conn - mysqli_connect(“localhost”, “root”, “nopassword”, “resume”);
Questions: