SlideShare a Scribd company logo
18
Most read
19
Most read
21
Most read
Govt. Engineering College
        AJMER


             A training presentation on :
             PHP with MySql
Submitted to :                              Submitted By :
Mr. Vinesh Jain                             Ajeet Kr. Jhajharia
                                            09CS04
Content :
   Company Profile
   History of php
   What is php ?
   Features of php
   php code look like
   Php Contents
   Advantage of php
   MySql
CEG : Center for Electronic
          Governance



CEG is an autonomous body of the Govt. of
Rajasthan under the department of technical
Education.
Foundation stone of CEG was laid down on 8th
December 2006 at Khaitan Polytechnic College
Jaipur by Shri Ghanshyam Tiwari and Shri
Vasudev Devnani, Hon’ble Ministers for
Technical Education.
History of php :




 Created by Rasmus Lerdorf in 1994
 Originally a set of Perl scripts used by
 Lerdorf    to show off his résumé.
What is php ?



    php stands for “Hypertext
    PreProcessor” .
 An open source language .
 php is a server-side scripting language .
 php is used to generate dynamic web pages.
 php code can be embedded within an HTML
 page.
What is php ?



 „ViewSource‟ in browsers does not
 display the php code .
 phpsupports many popular databases
 such as MySql , Oracle and many
 more.
Features of php :


 Very Efficient :– Can serve millions of hits per day.
 Database Integration :– Supports many
 databases, such as
  MySql and Oracle.
    It’s Free :– Available on http://www.php.net
    Easy to Learn – Very similar in syntax to C and C++
    php uses both procedural and object oriented
    paradigms.
php codes look like ?

    Each PHP script must be enclosed in the
     reserved php tag .

         <?php

              …

         ?>
php Contents:

   Variables
   Constant
   Operators
   Array
   Functions
Variables :
  Variables are used for storing values, such
   as
  numbers, strings or function results, so that
they                  can be used many times
in a script.
  PHP variables must begin with a “$” sign
  Php variables are case-sensitive ($Sign!=
   $sign != $siGn)
◦ Certain variable names reserved by PHP
  like form variables
  ($_POST, $_GET), server variables
Operators :
 Arithmetic Operators (+,-,*,/)
 Example:- $total=$a+$b;


 Assignment Operators(=)
 Example:- $t=$a+$b;


 Comparison Operators (<, <=, >, >=)
 Logical Operators (&&. ||,!)
Arrays:
  <?php
  $arr = array("somearray" =>
   array(6 => 5, 13 => 9, "a" => 42));

   echo $arr["somearray"][6];       //
   5
   echo $arr["somearray"][13];      //
   9
   echo $arr["somearray"]["a"];    //
   42
Functions :
   Functions must be defined before then can
    be called

   Function headers are of the format

   function
    functionName($arg1,$arg2,………$argn)


    ◦ Note that no return type is specified
Function Example:
<?php
     function mul($arg1, $arg2)
 {
     $arg2 = $arg1 * $arg2;
    return $arg2;
   }
 $result = mul(12, 3);    // Store the
   function
 echo $result1;           // Outputs 36
?>
Advantage of php :


 Open  source
 Procedural / Object Oriented
  programming
 Supports wide range of Databases
 Easy to learn
 Portable
Why MySql ?



 Most  popular open-source DB
 Fast, reliable, scalable, etc.
 Integrated with common applications
 Based on SQL Standard
  ◦ Probably at least as compliant as other
    DBs
MySQL Query Basics

   mysql_connect() :-
       This function returns the connection on
success, or FALSE and an error on failure.
    mysql_select_db() :-
       The mysql_select_db() function sets the
active MySQL database.
MySQL Query Basics
   mysql_query() :-
    The mysql_query() function executes a query on a
MySQL database.
   mysql_num_rows() :-
      The mysql_num_rows() function returns the number
of rows in a recordset.
   mysql_fetch_array() :-
The mysql_fetch_array() function returns a row from a
recordset as an associative array and/or a numeric array.
Project Snapshots


             Project:

 Student Information System
php
php
php
php
php
Ad

Recommended

PHP
PHP
Steve Fort
 
Introduction to php
Introduction to php
Taha Malampatti
 
Header files in c
Header files in c
HoneyChintal
 
Php introduction
Php introduction
krishnapriya Tadepalli
 
Web Engineering
Web Engineering
Muhammad Muzammal
 
8 parts of speech ppt
8 parts of speech ppt
Maridel Salapang
 
Php.ppt
Php.ppt
Nidhi mishra
 
Logistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Introduction to php
Introduction to php
shanmukhareddy dasi
 
Php array
Php array
Nikul Shah
 
Php mysql ppt
Php mysql ppt
Karmatechnologies Pvt. Ltd.
 
PHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Lesson 6 php if...else...elseif statements
Lesson 6 php if...else...elseif statements
MLG College of Learning, Inc
 
PHP variables
PHP variables
Siddique Ibrahim
 
Javascript
Javascript
mussawir20
 
Php
Php
Shyam Khant
 
Php and MySQL
Php and MySQL
Tiji Thomas
 
Control Structures In Php 2
Control Structures In Php 2
Digital Insights - Digital Marketing Agency
 
PHP - Introduction to Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
4.2 PHP Function
4.2 PHP Function
Jalpesh Vasa
 
Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Json
Json
krishnapriya Tadepalli
 
Php forms
Php forms
Anne Lee
 
Web container and Apache Tomcat
Web container and Apache Tomcat
Auwal Amshi
 
Express js
Express js
Manav Prasad
 
PHP - Introduction to File Handling with PHP
PHP - Introduction to File Handling with PHP
Vibrant Technologies & Computers
 
Basics of JavaScript
Basics of JavaScript
Bala Narayanan
 
Php Tutorials for Beginners
Php Tutorials for Beginners
Vineet Kumar Saini
 
Introduction to PHP
Introduction to PHP
Jussi Pohjolainen
 
Php tutorial
Php tutorial
S Bharadwaj
 

More Related Content

What's hot (20)

Introduction to php
Introduction to php
shanmukhareddy dasi
 
Php array
Php array
Nikul Shah
 
Php mysql ppt
Php mysql ppt
Karmatechnologies Pvt. Ltd.
 
PHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Lesson 6 php if...else...elseif statements
Lesson 6 php if...else...elseif statements
MLG College of Learning, Inc
 
PHP variables
PHP variables
Siddique Ibrahim
 
Javascript
Javascript
mussawir20
 
Php
Php
Shyam Khant
 
Php and MySQL
Php and MySQL
Tiji Thomas
 
Control Structures In Php 2
Control Structures In Php 2
Digital Insights - Digital Marketing Agency
 
PHP - Introduction to Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
4.2 PHP Function
4.2 PHP Function
Jalpesh Vasa
 
Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Json
Json
krishnapriya Tadepalli
 
Php forms
Php forms
Anne Lee
 
Web container and Apache Tomcat
Web container and Apache Tomcat
Auwal Amshi
 
Express js
Express js
Manav Prasad
 
PHP - Introduction to File Handling with PHP
PHP - Introduction to File Handling with PHP
Vibrant Technologies & Computers
 
Basics of JavaScript
Basics of JavaScript
Bala Narayanan
 
Php Tutorials for Beginners
Php Tutorials for Beginners
Vineet Kumar Saini
 

Viewers also liked (20)

Introduction to PHP
Introduction to PHP
Jussi Pohjolainen
 
Php tutorial
Php tutorial
S Bharadwaj
 
Php Presentation
Php Presentation
Manish Bothra
 
Advantages of Choosing PHP Web Development
Advantages of Choosing PHP Web Development
Grey Matter India Technologies PVT LTD
 
Php hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 
Php Ppt
Php Ppt
vsnmurthy
 
Introduction to PHP
Introduction to PHP
Bradley Holt
 
Linux commands
Linux commands
Balakumaran Arunachalam
 
PHP Project PPT
PHP Project PPT
Pankil Agrawal
 
Linux Introduction (Commands)
Linux Introduction (Commands)
anandvaidya
 
Php file handling in Hindi
Php file handling in Hindi
Vipin sharma
 
PHP 5.3 - Funções
PHP 5.3 - Funções
George Mendonça
 
Advancing JavaScript with Libraries (Yahoo Tech Talk)
Advancing JavaScript with Libraries (Yahoo Tech Talk)
jeresig
 
Php.ini
Php.ini
baabtra.com - No. 1 supplier of quality freshers
 
Php training in ahmedabad
Php training in ahmedabad
TOPS Technologies
 
Php File Operations
Php File Operations
Jamshid Hashimi
 
PHP Course in pune , PHP Training in Pimpri chinchwad ,PHP training in Pune
PHP Course in pune , PHP Training in Pimpri chinchwad ,PHP training in Pune
CNC WEB WORLD
 
Client side scripting and server side scripting
Client side scripting and server side scripting
baabtra.com - No. 1 supplier of quality freshers
 
Php basics
Php basics
Jamshid Hashimi
 
Shubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelay
shubham katiyar
 
Ad

Similar to php (20)

An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
jphl
 
Exploring Symfony's Code
Exploring Symfony's Code
Wildan Maulana
 
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Muhamad Al Imran
 
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Muhamad Al Imran
 
Php i basic chapter 3
Php i basic chapter 3
Muhamad Al Imran
 
Starting with PHP and Web devepolment
Starting with PHP and Web devepolment
Rajib Ahmed
 
Basics PHP
Basics PHP
Alokin Software Pvt Ltd
 
working with PHP & DB's
working with PHP & DB's
Hi-Tech College
 
Php interview questions
Php interview questions
sekar c
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
wahidullah mudaser
 
Advanced Php - Macq Electronique 2010
Advanced Php - Macq Electronique 2010
Michelangelo van Dam
 
Unit 1
Unit 1
tamilmozhiyaltamilmo
 
Current state-of-php
Current state-of-php
Richard McIntyre
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHP
Lariya Minhaz
 
PHP Basics
PHP Basics
Roohul Amin
 
Simplify your professional web development with symfony
Simplify your professional web development with symfony
Francois Zaninotto
 
Php
Php
samirlakhanistb
 
Api Design
Api Design
sumithra jonnalagadda
 
Php interview questions
Php interview questions
subash01
 
Practical catalyst
Practical catalyst
dwm042
 
An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
jphl
 
Exploring Symfony's Code
Exploring Symfony's Code
Wildan Maulana
 
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Muhamad Al Imran
 
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Muhamad Al Imran
 
Starting with PHP and Web devepolment
Starting with PHP and Web devepolment
Rajib Ahmed
 
Php interview questions
Php interview questions
sekar c
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
wahidullah mudaser
 
Advanced Php - Macq Electronique 2010
Advanced Php - Macq Electronique 2010
Michelangelo van Dam
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHP
Lariya Minhaz
 
Simplify your professional web development with symfony
Simplify your professional web development with symfony
Francois Zaninotto
 
Php interview questions
Php interview questions
subash01
 
Practical catalyst
Practical catalyst
dwm042
 
Ad

Recently uploaded (20)

WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 

php

  • 1. Govt. Engineering College AJMER A training presentation on : PHP with MySql Submitted to : Submitted By : Mr. Vinesh Jain Ajeet Kr. Jhajharia 09CS04
  • 2. Content :  Company Profile  History of php  What is php ?  Features of php  php code look like  Php Contents  Advantage of php  MySql
  • 3. CEG : Center for Electronic Governance CEG is an autonomous body of the Govt. of Rajasthan under the department of technical Education. Foundation stone of CEG was laid down on 8th December 2006 at Khaitan Polytechnic College Jaipur by Shri Ghanshyam Tiwari and Shri Vasudev Devnani, Hon’ble Ministers for Technical Education.
  • 4. History of php :  Created by Rasmus Lerdorf in 1994  Originally a set of Perl scripts used by Lerdorf to show off his résumé.
  • 5. What is php ?  php stands for “Hypertext PreProcessor” .  An open source language .  php is a server-side scripting language .  php is used to generate dynamic web pages.  php code can be embedded within an HTML page.
  • 6. What is php ?  „ViewSource‟ in browsers does not display the php code .  phpsupports many popular databases such as MySql , Oracle and many more.
  • 7. Features of php :  Very Efficient :– Can serve millions of hits per day.  Database Integration :– Supports many databases, such as MySql and Oracle.  It’s Free :– Available on http://www.php.net  Easy to Learn – Very similar in syntax to C and C++  php uses both procedural and object oriented paradigms.
  • 8. php codes look like ?  Each PHP script must be enclosed in the reserved php tag . <?php … ?>
  • 9. php Contents:  Variables  Constant  Operators  Array  Functions
  • 10. Variables :  Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script.  PHP variables must begin with a “$” sign  Php variables are case-sensitive ($Sign!= $sign != $siGn) ◦ Certain variable names reserved by PHP like form variables ($_POST, $_GET), server variables
  • 11. Operators :  Arithmetic Operators (+,-,*,/)  Example:- $total=$a+$b;  Assignment Operators(=)  Example:- $t=$a+$b;  Comparison Operators (<, <=, >, >=)  Logical Operators (&&. ||,!)
  • 12. Arrays: <?php $arr = array("somearray" => array(6 => 5, 13 => 9, "a" => 42)); echo $arr["somearray"][6]; // 5 echo $arr["somearray"][13]; // 9 echo $arr["somearray"]["a"]; // 42
  • 13. Functions :  Functions must be defined before then can be called  Function headers are of the format  function functionName($arg1,$arg2,………$argn) ◦ Note that no return type is specified
  • 14. Function Example: <?php function mul($arg1, $arg2) { $arg2 = $arg1 * $arg2; return $arg2; } $result = mul(12, 3); // Store the function echo $result1; // Outputs 36 ?>
  • 15. Advantage of php :  Open source  Procedural / Object Oriented programming  Supports wide range of Databases  Easy to learn  Portable
  • 16. Why MySql ?  Most popular open-source DB  Fast, reliable, scalable, etc.  Integrated with common applications  Based on SQL Standard ◦ Probably at least as compliant as other DBs
  • 17. MySQL Query Basics  mysql_connect() :- This function returns the connection on success, or FALSE and an error on failure.  mysql_select_db() :- The mysql_select_db() function sets the active MySQL database.
  • 18. MySQL Query Basics  mysql_query() :- The mysql_query() function executes a query on a MySQL database.  mysql_num_rows() :- The mysql_num_rows() function returns the number of rows in a recordset.  mysql_fetch_array() :- The mysql_fetch_array() function returns a row from a recordset as an associative array and/or a numeric array.
  • 19. Project Snapshots Project: Student Information System