SlideShare a Scribd company logo
Welcome TO
FreeEasyTutorials.com
http://www.freeeasytutorials.com/
PHP Tutorials
What is PHP
> PHP which stands for Hypertext Preprocessor is a web server-
side scripting language designed for web development.
> It is a general purpose programming language that can be used
for multiple applications such as setting-up security for web
information and manipulation of data within database more
especially MySQL as we will see later in our tutorials and much
more.
> PHP helps in making work easy especially when using the
inbuilt functions and connecting to a database.
http://www.freeeasytutorials.com/
Features of PHP
> PHP is the most popular scripting language used for web
development.
> PHP is use to develop static as well as dynamic websites.
> Interesting thing about PHP is it is free , open source (no
need to buy license to create personal as well as commercial
applications) and server-side scripting language(the code is
always executed on the server and generated output is
returned to the end user)
> PHP is faster than other scripting language like ASP and JSP.
> PHP provides two options to write your code I.e. you can
write your HTML code and embed PHP code inside the HTML
code or you can have option to write HTML code inside PHP
code.We will see how to write them in upcoming tutorials.
http://www.freeeasytutorials.com/
Environment setup
> In order to create and run PHP programs on your pc
and before uploading them to hosts for worldwide
connection, you need a local server.
> A server will help to enhance communication
between scripts thus enabling your application run
smoothly.
> For this purpose you need a software like Xampp or
other options like Wampp but in this case we are going
to use Xampp.
http://www.freeeasytutorials.com/
XAMPP installation
As we already know In order to create and run PHP
programs on your pc and before uploading them to
hosts for worldwide connection, you need a local
server.
Follow the steps given below to install XAMPP on
your local computer.
Locate the downloaded programs i.e. XAMPP setup
file :
> The best directory to get you to your downloaded
program is downloads/programs and look for the
Xampp executable file. Double-click it or :
Running program as an administrator :
> Right click on the icon of the XAMPP program
(executable file) and select the option Run as
administrator from the drop down list. http://www.freeeasytutorials.com/
PHP - Database
> More often we would like to keep information about our users for later reference
with our website, we thus resolve to using databases.
> PHP helps in making work easy especially when using the inbuilt functions and
connecting to a database.
> With PHP, you can connect to database and perform the databases operations like
insert,delete,update and many more.
> MySQL is mainly use for simplicity in storing website data for example user-names
and passwords, it is better to have a database for reference.
> MySQL provides a better interface for which we can manipulate our data.
> Before doing anything with MySql database, ensure you start MySql module in the
Xampp control panel.
> Our next topics will take us through the process of connecting and manipulating
data in our database and the website.
http://www.freeeasytutorials.com/
PHP - MYSQL Connect
> This part is very important and must be included in every file
where we want to connect to database and retrieve or send data
to a database.
> The better version of doing it is to create a file with the
connection functionality and include or require in this other files.
> The function for creating the connection is;
mysql_connect(server_name, username, password) ;
> By default, the php admin provides that the username to be root
and password is null i.e ‘ ’.
> To start the PHP admin for database, click the admin button for
MySql module in the xampp control panel.
http://www.freeeasytutorials.com/
PHP - MYSQL Update
> Many at a times, users would like to
update their information in your website
such as the username, or email or the
reset a password
> We thus must therefore provide the
with this functionality to change these
things according to user needs.
> To enhance this, we use the UPDATE
query in PHP queries.
> we can specify which data we want to
update the data using the WHERE clause
> For example let’s change the name
Brianfrom previous example to John and
email example@gmail.com to
someone@gmail.com
http://www.freeeasytutorials.com/
PHP - MYSQL Select
> The SELECT query allows us to get information from the database.
> We use SELECT query to get all the information or specific
information from the database.
> To get all the information from database we use a *; i.e “SELECT *
FROM table_name”.
> To get information of a specific field we specify it in the query i.e let
us select information from the field username i.e “SELECT username
FROM table_name”.
> This module also allows the selection of data for a specific object
using the WHERE clause.
> Let’s for example write a simple program to display all id, username
and emails from our table
http://www.freeeasytutorials.com/
PHP - Sample Application
> We have now come to the end of our tutorials.
> Attached is a a sample application for a voting system in an institution.You
can also use this voting system to do online shopping.
Instruction on installing the online voting system
1.Download the folder Dekut here.
2.Save the folder in htdocs as we do always in xampp folder in c disk.
3.Start both apache an mysql in xampp control panel.
4.Click admin for the mysQl option in xamp control pannel.
http://www.freeeasytutorials.com/
About FreeEasyTutorials.com
FreeEasyTutorials.com (launched in 2017) is a website which has
been created to provide very simple and easy programming
tutorials and useful articles for beginners and professionals
across the globe.The website also contains articles to learn how
to earn online money.
Mission
New ideas, techniques and teachings are found every day. FreeEasyTutorials.com is
always changing / adding it's tutorials and references to provide latest tutorials to our
readers. We are working continuously to make FreeEasyTutorials.com more useful for
every single moment you spend on the website.
Best regards,
FreeEasyTutorials.com
http://www.freeeasytutorials.com/
For More Information Please
Visit Our Site
http://www.freeeasytutorials.com/
http://www.freeeasytutorials.com/

More Related Content

PDF
PHP MySQL Training : Module 3
PPT
Installation of Drupal on Windows XP
PDF
PHP MySQL Training : Module 2
PDF
PPT
Installation of Drupal on Windows XP with XAMPP
PPT
Drupalxamppxp2 1231342958532404 1
PPTX
How to Install and Configure Drupal CMS
PHP MySQL Training : Module 3
Installation of Drupal on Windows XP
PHP MySQL Training : Module 2
Installation of Drupal on Windows XP with XAMPP
Drupalxamppxp2 1231342958532404 1
How to Install and Configure Drupal CMS

What's hot (20)

PPTX
How to Install and Configure Drupal CMS
PPTX
Apache error
PDF
How to use_000webhost
PPTX
Setting up a web server in Linux (Ubuntu)
ODP
Apache ppt
PPT
Installation of Joomla on Windows XP
PPT
Installation of wordpress
ODP
Apache ppt
PPTX
Introduction to php
PPTX
Apache web service
PPT
Securing Your Web Server
PDF
Configure use-tomcat
PDF
MuleSoft ESB Message Enricher
PPT
Installation of OpenBiblio on Windows XP using EasyPHP
PPT
Apache Ppt
PPTX
Joomla
PPT
Word press & dreamweaver
PPTX
Setting up a debugging environment for Drupal
PPTX
Apache server configuration & optimization
PPTX
WordPress: a stepping stone to Web Development
How to Install and Configure Drupal CMS
Apache error
How to use_000webhost
Setting up a web server in Linux (Ubuntu)
Apache ppt
Installation of Joomla on Windows XP
Installation of wordpress
Apache ppt
Introduction to php
Apache web service
Securing Your Web Server
Configure use-tomcat
MuleSoft ESB Message Enricher
Installation of OpenBiblio on Windows XP using EasyPHP
Apache Ppt
Joomla
Word press & dreamweaver
Setting up a debugging environment for Drupal
Apache server configuration & optimization
WordPress: a stepping stone to Web Development
Ad

Similar to PHP tutorials , php tutorials for beginners , tutorials for php (20)

ODP
PDF
Php summary
PPTX
Learn PHP Lacture2
PPTX
CHAPTER six DataBase Driven Websites.pptx
PPTX
Php reports sumit
PPSX
Php session
PPTX
Php with mysql ppt
PPTX
PHP FUNCTIONS
DOC
Php tutorial
PDF
Installing configuringdevelopingwithxampp
PPTX
PHP-MySQL Database Connectivity Using XAMPP Server
PPTX
Lecture1 introduction by okello erick
PDF
Learn php with PSK
PPTX
Introduction to PHP_ Lexical structure_Array_Function_String
PPT
SQL -PHP Tutorial
PPTX
MySQL with PHP
Php summary
Learn PHP Lacture2
CHAPTER six DataBase Driven Websites.pptx
Php reports sumit
Php session
Php with mysql ppt
PHP FUNCTIONS
Php tutorial
Installing configuringdevelopingwithxampp
PHP-MySQL Database Connectivity Using XAMPP Server
Lecture1 introduction by okello erick
Learn php with PSK
Introduction to PHP_ Lexical structure_Array_Function_String
SQL -PHP Tutorial
MySQL with PHP
Ad

Recently uploaded (20)

DOCX
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
PPT
How to Protect Your New York Business from the Unexpected
PDF
SUpport and ressistance in Forex and Gold
PDF
A Complete Guide to Data Migration Services for Modern Businesses
PPTX
Buy Chaos Software – V-Ray, Enscape & Vantage Licenses in India
PDF
A Brief Introduction About - Stacey Soans
PDF
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive
PPTX
BUSINESS FINANCE POWER POINT PRESENTATION
PPTX
Communications Recruiter Melbourne.pptx
PPTX
Is Your Brand Ready for Expansion? A Strategic Guide to Scaling Successfully
PDF
2025 07 29 The Future, Backwards Agile 2025.pdf
PDF
Lecture 3 - Risk Management and Compliance.pdf
PDF
SparkLabs Primer on Artificial Intelligence 2025
PPTX
NTE 2025/20: Updated End User Undertaking (EUU) Form and Guidance
PPTX
Untitled presentation (2).quiz presention
PDF
Tariff Surcharge and Price Increase Decision
PPTX
Creating the Ultimate SOP Manual: Streamline, Standardize, and Scale
PPTX
GenAI at FinSage Financial Wellness Platform
PPTX
Presentation model for business presentations
PDF
From Risk to Opportunity: How Cybersecurity Enhances Your Staffing Business
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
How to Protect Your New York Business from the Unexpected
SUpport and ressistance in Forex and Gold
A Complete Guide to Data Migration Services for Modern Businesses
Buy Chaos Software – V-Ray, Enscape & Vantage Licenses in India
A Brief Introduction About - Stacey Soans
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive
BUSINESS FINANCE POWER POINT PRESENTATION
Communications Recruiter Melbourne.pptx
Is Your Brand Ready for Expansion? A Strategic Guide to Scaling Successfully
2025 07 29 The Future, Backwards Agile 2025.pdf
Lecture 3 - Risk Management and Compliance.pdf
SparkLabs Primer on Artificial Intelligence 2025
NTE 2025/20: Updated End User Undertaking (EUU) Form and Guidance
Untitled presentation (2).quiz presention
Tariff Surcharge and Price Increase Decision
Creating the Ultimate SOP Manual: Streamline, Standardize, and Scale
GenAI at FinSage Financial Wellness Platform
Presentation model for business presentations
From Risk to Opportunity: How Cybersecurity Enhances Your Staffing Business

PHP tutorials , php tutorials for beginners , tutorials for php

  • 2. PHP Tutorials What is PHP > PHP which stands for Hypertext Preprocessor is a web server- side scripting language designed for web development. > It is a general purpose programming language that can be used for multiple applications such as setting-up security for web information and manipulation of data within database more especially MySQL as we will see later in our tutorials and much more. > PHP helps in making work easy especially when using the inbuilt functions and connecting to a database. http://www.freeeasytutorials.com/
  • 3. Features of PHP > PHP is the most popular scripting language used for web development. > PHP is use to develop static as well as dynamic websites. > Interesting thing about PHP is it is free , open source (no need to buy license to create personal as well as commercial applications) and server-side scripting language(the code is always executed on the server and generated output is returned to the end user) > PHP is faster than other scripting language like ASP and JSP. > PHP provides two options to write your code I.e. you can write your HTML code and embed PHP code inside the HTML code or you can have option to write HTML code inside PHP code.We will see how to write them in upcoming tutorials. http://www.freeeasytutorials.com/
  • 4. Environment setup > In order to create and run PHP programs on your pc and before uploading them to hosts for worldwide connection, you need a local server. > A server will help to enhance communication between scripts thus enabling your application run smoothly. > For this purpose you need a software like Xampp or other options like Wampp but in this case we are going to use Xampp. http://www.freeeasytutorials.com/
  • 5. XAMPP installation As we already know In order to create and run PHP programs on your pc and before uploading them to hosts for worldwide connection, you need a local server. Follow the steps given below to install XAMPP on your local computer. Locate the downloaded programs i.e. XAMPP setup file : > The best directory to get you to your downloaded program is downloads/programs and look for the Xampp executable file. Double-click it or : Running program as an administrator : > Right click on the icon of the XAMPP program (executable file) and select the option Run as administrator from the drop down list. http://www.freeeasytutorials.com/
  • 6. PHP - Database > More often we would like to keep information about our users for later reference with our website, we thus resolve to using databases. > PHP helps in making work easy especially when using the inbuilt functions and connecting to a database. > With PHP, you can connect to database and perform the databases operations like insert,delete,update and many more. > MySQL is mainly use for simplicity in storing website data for example user-names and passwords, it is better to have a database for reference. > MySQL provides a better interface for which we can manipulate our data. > Before doing anything with MySql database, ensure you start MySql module in the Xampp control panel. > Our next topics will take us through the process of connecting and manipulating data in our database and the website. http://www.freeeasytutorials.com/
  • 7. PHP - MYSQL Connect > This part is very important and must be included in every file where we want to connect to database and retrieve or send data to a database. > The better version of doing it is to create a file with the connection functionality and include or require in this other files. > The function for creating the connection is; mysql_connect(server_name, username, password) ; > By default, the php admin provides that the username to be root and password is null i.e ‘ ’. > To start the PHP admin for database, click the admin button for MySql module in the xampp control panel. http://www.freeeasytutorials.com/
  • 8. PHP - MYSQL Update > Many at a times, users would like to update their information in your website such as the username, or email or the reset a password > We thus must therefore provide the with this functionality to change these things according to user needs. > To enhance this, we use the UPDATE query in PHP queries. > we can specify which data we want to update the data using the WHERE clause > For example let’s change the name Brianfrom previous example to John and email [email protected] to [email protected] http://www.freeeasytutorials.com/
  • 9. PHP - MYSQL Select > The SELECT query allows us to get information from the database. > We use SELECT query to get all the information or specific information from the database. > To get all the information from database we use a *; i.e “SELECT * FROM table_name”. > To get information of a specific field we specify it in the query i.e let us select information from the field username i.e “SELECT username FROM table_name”. > This module also allows the selection of data for a specific object using the WHERE clause. > Let’s for example write a simple program to display all id, username and emails from our table http://www.freeeasytutorials.com/
  • 10. PHP - Sample Application > We have now come to the end of our tutorials. > Attached is a a sample application for a voting system in an institution.You can also use this voting system to do online shopping. Instruction on installing the online voting system 1.Download the folder Dekut here. 2.Save the folder in htdocs as we do always in xampp folder in c disk. 3.Start both apache an mysql in xampp control panel. 4.Click admin for the mysQl option in xamp control pannel. http://www.freeeasytutorials.com/
  • 11. About FreeEasyTutorials.com FreeEasyTutorials.com (launched in 2017) is a website which has been created to provide very simple and easy programming tutorials and useful articles for beginners and professionals across the globe.The website also contains articles to learn how to earn online money. Mission New ideas, techniques and teachings are found every day. FreeEasyTutorials.com is always changing / adding it's tutorials and references to provide latest tutorials to our readers. We are working continuously to make FreeEasyTutorials.com more useful for every single moment you spend on the website. Best regards, FreeEasyTutorials.com http://www.freeeasytutorials.com/
  • 12. For More Information Please Visit Our Site http://www.freeeasytutorials.com/ http://www.freeeasytutorials.com/