SlideShare a Scribd company logo
PC Technology Private Limited
Introduction to PHP/MySQL
What have we done ?
 HTML Basic Formatting Tags
 Form Elements
 Input Types and Buttons
 Overview on how to run a PHP Application on
Server
 A Simple PHP Application
 GET and POST Methods
 Print the data of the Forms
 Difference between Echo and Print
What next ?
 Information on Formatting and Coloring
 DIV’s and SPAN’s
 Commenting in PHP
 PHP Case Senstivity
 Variable Declaration
 Rules for Declaring a variable in PHP
 Performing Operations
Formatting and Colors
 A HTML element has a default style for colors
 (background color is white and text color is black).
 HTML Style Attibute
 style="property : value“ // CSS Values
 Set a color for the background
 <body style="background-color:lightgrey">
 Setting a color for the Text
 <h1 style="color:blue">This is a heading</h1>
 Setting a text size
 <p style="font-size:160%">This is a paragraph.</p>
Comments in PHP
 It is not executed by the program
 It is just for the reference of the developer
 Ways to write a comment
 Single Line Comments
 //
 #
 Multiple Line Comment
 /* _______ */
PHP Case Sensitivity
 Is PHP really case sensitive ?
 No !!
 All classes, functions, keywords and user defined
functions are not case sensitive
 HOWEVER, Variable names are case sensitive
 $hello is different from $Hello
Variables in PHP
 There is no command to declare a variable
 The Declaration of a variable is done by
preceding a “ $ “ sign in front of the desired
variable name
 $name
 $add
 Normal Syntax follows : Strings should be
declared in quotes, numbers without quotes
 Variables are used to store and manipulate the
data.
Rules for declaring a variable
 Variable names are case-sensitive ($age and
$AGE are two different variables)
 A variable name cannot start with a number
 A variable name should starts with the $ sign,
followed by the desired name of the variable
 It is mandatory to start a variable name with a
letter or an underscore character
 A variable name can only contain alpha-numeric
characters and underscores (A-z, 0-9, and _ )
Perform Mathematical
Operations
 Five Mathematical Operations
 Addition ( + )
 Subtraction ( - )
 Multiplication ( * )
 Division ( / )
 Modulus ( % )
 Declaration
 $a + $b;
 $c = $a + $b;
That’s all Folks !!
QUERIES ??

More Related Content

PPTX
Variables
PPSX
Php using variables-operators
PDF
Variables in PHP
PPT
PHP - DataType,Variable,Constant,Operators,Array,Include and require
PDF
Operators in PHP
PPTX
Operators php
PPTX
PHP Basics
PPTX
Php introduction
Variables
Php using variables-operators
Variables in PHP
PHP - DataType,Variable,Constant,Operators,Array,Include and require
Operators in PHP
Operators php
PHP Basics
Php introduction

What's hot (20)

PPTX
Introduction to Java
ODP
PPTX
PPTX
Lesson 4 constant
ODP
Php variables (english)
PPT
PDF
A better CSS: Sass and Less - CC FE & UX
PPT
Free video lectures for mca
PDF
Data Types In PHP
PDF
C - - Grammar 1.0
PDF
C grammar
PPTX
PHP Variables and scopes
PPT
Open Source Package Php Mysql 1228203701094763 9
PPTX
php basics
PDF
XML Quick Reference (from mulberrytech.com)
PPS
Web technology html5 php_mysql
PPT
Basic PHP
PPTX
Basic of PHP
PPTX
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
PDF
Introduction to php
Introduction to Java
Lesson 4 constant
Php variables (english)
A better CSS: Sass and Less - CC FE & UX
Free video lectures for mca
Data Types In PHP
C - - Grammar 1.0
C grammar
PHP Variables and scopes
Open Source Package Php Mysql 1228203701094763 9
php basics
XML Quick Reference (from mulberrytech.com)
Web technology html5 php_mysql
Basic PHP
Basic of PHP
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Introduction to php
Ad

Viewers also liked (20)

POTX
Introduction to php 2
POTX
Introduction to PHP - Slide 1
DOCX
Resume_vikas
PPTX
Forex.ppt
PDF
Mesa Bath & Kitchen
DOCX
Company Profile v3
DOC
Vlase Nicoleta
PPS
Introduction to php 5
POTX
Introduction to php 4
PPTX
Introduction to php 6
DOC
PHUMLANI C.V
PPT
Методы и алгоритмы обследования в аллергологии
PDF
Testing Made Easy
PDF
Language enabling
PDF
PHP Files: An Introduction
PDF
Php introduction
PPT
АСТМА-школа
PDF
Sending emails through PHP
PDF
An Introduction to PHP Classes
PDF
Comparisons Wiki vs CMS
Introduction to php 2
Introduction to PHP - Slide 1
Resume_vikas
Forex.ppt
Mesa Bath & Kitchen
Company Profile v3
Vlase Nicoleta
Introduction to php 5
Introduction to php 4
Introduction to php 6
PHUMLANI C.V
Методы и алгоритмы обследования в аллергологии
Testing Made Easy
Language enabling
PHP Files: An Introduction
Php introduction
АСТМА-школа
Sending emails through PHP
An Introduction to PHP Classes
Comparisons Wiki vs CMS
Ad

Similar to Introduction to php 3 (20)

PPTX
Learn PHP Basics
PPT
P H P Part I, By Kian
KEY
php app development 1
PPTX
PHP Basics
PPTX
PHP BASICs Data Type ECHo and PRINT.pptx
PPTX
PDF
Introduction to PHP_Slides by Lesley_Bonyo.pdf
PPTX
The basics of php for engeneering students
PPT
Babitha5.php
PPT
Babitha5.php
PPT
Babitha5.php
PPTX
Php intro by sami kz
PPTX
Php by shivitomer
PPTX
Lesson 1 php syntax
PPT
Php essentials
PPTX
Php assignment help
PPTX
chapter Two Server-side Script lang.pptx
Learn PHP Basics
P H P Part I, By Kian
php app development 1
PHP Basics
PHP BASICs Data Type ECHo and PRINT.pptx
Introduction to PHP_Slides by Lesley_Bonyo.pdf
The basics of php for engeneering students
Babitha5.php
Babitha5.php
Babitha5.php
Php intro by sami kz
Php by shivitomer
Lesson 1 php syntax
Php essentials
Php assignment help
chapter Two Server-side Script lang.pptx

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
A Presentation on Artificial Intelligence
PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
A comparative analysis of optical character recognition models for extracting...
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
A Presentation on Artificial Intelligence
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
sap open course for s4hana steps from ECC to s4
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A comparative analysis of optical character recognition models for extracting...
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Machine Learning_overview_presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars

Introduction to php 3

  • 1. PC Technology Private Limited Introduction to PHP/MySQL
  • 2. What have we done ?  HTML Basic Formatting Tags  Form Elements  Input Types and Buttons  Overview on how to run a PHP Application on Server  A Simple PHP Application  GET and POST Methods  Print the data of the Forms  Difference between Echo and Print
  • 3. What next ?  Information on Formatting and Coloring  DIV’s and SPAN’s  Commenting in PHP  PHP Case Senstivity  Variable Declaration  Rules for Declaring a variable in PHP  Performing Operations
  • 4. Formatting and Colors  A HTML element has a default style for colors  (background color is white and text color is black).  HTML Style Attibute  style="property : value“ // CSS Values  Set a color for the background  <body style="background-color:lightgrey">  Setting a color for the Text  <h1 style="color:blue">This is a heading</h1>  Setting a text size  <p style="font-size:160%">This is a paragraph.</p>
  • 5. Comments in PHP  It is not executed by the program  It is just for the reference of the developer  Ways to write a comment  Single Line Comments  //  #  Multiple Line Comment  /* _______ */
  • 6. PHP Case Sensitivity  Is PHP really case sensitive ?  No !!  All classes, functions, keywords and user defined functions are not case sensitive  HOWEVER, Variable names are case sensitive  $hello is different from $Hello
  • 7. Variables in PHP  There is no command to declare a variable  The Declaration of a variable is done by preceding a “ $ “ sign in front of the desired variable name  $name  $add  Normal Syntax follows : Strings should be declared in quotes, numbers without quotes  Variables are used to store and manipulate the data.
  • 8. Rules for declaring a variable  Variable names are case-sensitive ($age and $AGE are two different variables)  A variable name cannot start with a number  A variable name should starts with the $ sign, followed by the desired name of the variable  It is mandatory to start a variable name with a letter or an underscore character  A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
  • 9. Perform Mathematical Operations  Five Mathematical Operations  Addition ( + )  Subtraction ( - )  Multiplication ( * )  Division ( / )  Modulus ( % )  Declaration  $a + $b;  $c = $a + $b;
  • 10. That’s all Folks !! QUERIES ??