SlideShare a Scribd company logo
IT3101
Web-based Database
Development
Tusabe Lawrence
ltusabe@gmail.com
Purpose Of Course
 To impart theoretical and practical skills for
developing web-based database systems using
PHP, MYSQL and SQL
2
Course Content
 Overview of Client-side scripting technologies
 Overview of Server-side scripting languages
 An introduction to the Database tier with specific emphasis on
MySQL
 Learning PHP
 PHP Basics:- Introduction, Installation, Syntax
 Variables, Arrays and Strings
 Operators
 Conditions and Branches:- If...Else, Switch
 Loops:- While Loops, For Loops
 Functions
 Forms: - Data Entry with $_GET $_POST functions and
Validation
 MySQL databases
3
Course Content (cont...)
 Database Basics
 Loading a Database
 MySQL command Interpreter
 Creating a database
 Modifying a database
 Inserts, Updates, and Deletes
 Querying a database
 MySQL functions in PHP
 Populating Web pages from a database
 User-Driven Querying
 Previous and Next Browsing
 User Authentication and Management
 Reporting
4
Introduction
 Welcome. If you are thumbing through these
pages, you’re probably considering writing Web-
based applications with PHP and MySQL.
 If you decide to go with these tools, you’ll be in
excellent company.
 Thousands of developers from total newbies to
programmers with years of experience are turning
to PHP and MySQL for their Web-based projects,
and for good reason.
5
Introduction
 PHP and MySQL are easy to use, fast, free, and
powerful. If you want to get a dynamic Web site up
quickly, there are no better choices.
 PHP scripting language built for the Web. All the tasks
common to Web development can be performed in
PHP with an absolute minimum of effort.
 MySQL excels at tasks common to dynamic Web
sites. Whether you’re creating a content-management
system or an e-commerce application, MySQL is a
great choice for your data storage.
6
How This Course Is Organized
Part I: Working with MySQL
 Before you code any PHP scripts you need to
know how to design a database, create tables
in your database, and get the information you
want from the database.
 Part I shows you just about everything you
need to know to work with MySQL.
7
How This Course Is Organized
Part II: Working with PHP
 As an applications developer, you will spend
the bulk of your time writing scripts that access
the database and present HTML to a user’s
browser.
 Part II starts by the basics of the PHP scripting
language, covering how PHP works with
variables, conditions, and control structures.
 Part II also covers many of PHP’s functions
and discusses techniques for writing clean,
manageable code.
8
How This Course Is Organized
Part III: Simple Applications
 In this part we present two applications: a
guestbook and a survey. Here you see the
lessons from Parts I and II put into practice as
we build working applications.
9
Apache
 The Apache Web server is the most popular Web
server. Like Linux, PHP, and MySQL, is an open-
source project.
 Apache works best in Unix environments, but also
runs just fine under Windows.
 PHP most often runs as an Apache extension,
known as an Apache module. Apache is a great
Web server. It is extremely quick and amazingly
stable.
10
Relational Databases
 Relational database management systems (RDBMS)
provide a great way to store and access complex
information.
 They predate the Web, Linux, and Windows, so there
are many RDBMS to choose from. All the major
databases make use of the Structured Query
Language (SQL).
 Some of the more popular commercial RDBMS are
Oracle, Sybase, Informix, Microsoft’s SQL Server, and
IBM’s DB2. In addition to MySQL, there are now two
major open-source relational databases. Postgres and
Borland
11
Why PHP?
 It’s fast and easy: From everything we know, we feel
safe in saying that PHP is as fast as anything out
there.
 It’s cross-platform: PHP runs on Windows, 2000, NT,
CE, XP and Unix and with both IIS and Apache. PHP
works as well on as wide a variety of systems as any
other available product.
 It accesses everything: What do you need to access
in the course of creating your Web applications?
LDAP? IMAP mail server? Oracle? Informix? DB2?
Whatever you need to use, it is more than likely that
PHP has a built-in set of functions that make getting
whatever you need very easy.
12
Why PHP?
 It’s constantly being improved
 Your peers can support you: If you run into trouble if
there’s a bug in your code that you just can’t figure out
or if you can’t seem to fathom some function or
another someone among the hundreds subscribed to
PHP mailing lists will be happy to check and fix your
code.
 It’s free: If you have a computer, Linux, Apache, and
PHP are all completely free.
13
Why PHP?
 PHP runs on various platforms (Windows,
Linux, Unix, Mac OS X, etc.)
 PHP is compatible with almost all servers used
today (Apache, IIS, etc.)
 PHP supports a wide range of databases
 PHP is free. Download it from the official PHP
resource: www.php.net
 PHP is easy to learn and runs efficiently on the
server side
14
Why MySQL?
 It’s cost-effective: Think of Oracle installation? Get
ready to shell out tens of thousands of dollars at a
minimum. There’s no doubt that Oracle, Sybase, and
Informix create terrific databases, but the cost
involved is prohibitive for many. MySQL is free for
development and can be used in a live production
environment for a minimal cost
 It’s quick and powerful: MySQL might not have
every bell and whistle available for a relational
database, but for most users it has plenty. If you are
serving out Web content or creating a moderately
sized commerce site, MySQL has all the power you
need.
15
Why MySQL?
 It’s improving all the time: MySQL is improving at a
staggering rate. The developers release updates
frequently and are adding impressive features all the
time.
16

More Related Content

PPT
Why to use PHP
sammesh30
 
PDF
Chp 08 php (shared)
YUSRA FERNANDO
 
PDF
Lesson 4
AliiyLomugdang
 
PDF
Php tutorial
aashimasharma232
 
PPTX
Word press
Brian Lucas
 
PDF
Php training in bhubaneswar
litbbsr
 
PPTX
Thinking of business website? Go for PHP or Wordpress
Kaspar Lavik
 
PPTX
Php
Saket Shukla
 
Why to use PHP
sammesh30
 
Chp 08 php (shared)
YUSRA FERNANDO
 
Lesson 4
AliiyLomugdang
 
Php tutorial
aashimasharma232
 
Word press
Brian Lucas
 
Php training in bhubaneswar
litbbsr
 
Thinking of business website? Go for PHP or Wordpress
Kaspar Lavik
 

What's hot (16)

PPTX
14 technologies every web developer should be able to understand
Um e Farwa
 
PPTX
Php presentation
Helen Pitlick
 
PPTX
Introduction to Web Architecture
Chamnap Chhorn
 
PPTX
Lenguajes y plataformas de desarrollo
Jose Luis Calvo Salanova
 
PDF
WordPress Manual in Compatible with XAMPP
Maulana Azad National Institute of Technology Bhopal
 
PPTX
How to Install and Configure Drupal CMS
ffats1
 
PPTX
How to Install and Configure Drupal CMS
darandon
 
PPTX
Rits Brown Bag - PHP & PHPMyAdmin
Right IT Services
 
PDF
My sql università di enna a.a. 2005-06
YUCHENG HU
 
PDF
Responsive WEB APP using cakePHP
Edureka!
 
PPTX
PHP Summer Training Presentation
Nitesh Sharma
 
PPTX
Introduction to PHP
Techsters Web
 
PPT
INLS461_day14a.ppt
webhostingguy
 
ODP
Building Dynamic Websites With Joomla CMS
Thomas Siegers
 
PDF
WordPress Complete Manual in XAMPP
Maulana Azad National Institute of Technology Bhopal
 
PPT
PHP: Hypertext Preprocessor Introduction
Oto Brglez
 
14 technologies every web developer should be able to understand
Um e Farwa
 
Php presentation
Helen Pitlick
 
Introduction to Web Architecture
Chamnap Chhorn
 
Lenguajes y plataformas de desarrollo
Jose Luis Calvo Salanova
 
WordPress Manual in Compatible with XAMPP
Maulana Azad National Institute of Technology Bhopal
 
How to Install and Configure Drupal CMS
ffats1
 
How to Install and Configure Drupal CMS
darandon
 
Rits Brown Bag - PHP & PHPMyAdmin
Right IT Services
 
My sql università di enna a.a. 2005-06
YUCHENG HU
 
Responsive WEB APP using cakePHP
Edureka!
 
PHP Summer Training Presentation
Nitesh Sharma
 
Introduction to PHP
Techsters Web
 
INLS461_day14a.ppt
webhostingguy
 
Building Dynamic Websites With Joomla CMS
Thomas Siegers
 
WordPress Complete Manual in XAMPP
Maulana Azad National Institute of Technology Bhopal
 
PHP: Hypertext Preprocessor Introduction
Oto Brglez
 
Ad

Similar to Lecture1 introduction by okello erick (20)

DOC
Online Fitness Gym Documentation
Abhishek Patel
 
PDF
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.
Kamal Acharya
 
PPTX
LAMP TECHNOLOGY BY SAIKIRAN PANJALA
Saikiran Panjala
 
PPT
Lamp
anurag1p
 
PPTX
lamp-technology-8860-9KNDvBR.pptx
Manikanta191485
 
PDF
Php simple
PrinceGuru MS
 
PDF
PHP Basics
Roohul Amin
 
PDF
Php mysql-tutorial-en
soft deal solution
 
PDF
Php training in bhubaneswar
litbbsr
 
PPTX
lamp.pptx
SainikRamagiri
 
DOCX
CONTENT MANAGEMENT SYSTEM
ANAND PRAKASH
 
PDF
PHP Web Development.pdf
Fariha Tasnim
 
PPTX
Introduction to php
shanmukhareddy dasi
 
PPTX
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PPTX
Php verses .net
CBitss Technologies
 
PDF
Node JS vs PHP Which Backend to Choose for Your Project.pdf
Pixlogix Infotech
 
PPTX
Online Examination System
Danish Ansari
 
Online Fitness Gym Documentation
Abhishek Patel
 
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.
Kamal Acharya
 
LAMP TECHNOLOGY BY SAIKIRAN PANJALA
Saikiran Panjala
 
Lamp
anurag1p
 
lamp-technology-8860-9KNDvBR.pptx
Manikanta191485
 
Php simple
PrinceGuru MS
 
PHP Basics
Roohul Amin
 
Php mysql-tutorial-en
soft deal solution
 
Php training in bhubaneswar
litbbsr
 
lamp.pptx
SainikRamagiri
 
CONTENT MANAGEMENT SYSTEM
ANAND PRAKASH
 
PHP Web Development.pdf
Fariha Tasnim
 
Introduction to php
shanmukhareddy dasi
 
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Php verses .net
CBitss Technologies
 
Node JS vs PHP Which Backend to Choose for Your Project.pdf
Pixlogix Infotech
 
Online Examination System
Danish Ansari
 
Ad

More from okelloerick (11)

PPT
My sql statements by okello erick
okelloerick
 
PPT
Lecture8 php page control by okello erick
okelloerick
 
PPT
Lecture7 form processing by okello erick
okelloerick
 
PPT
Lecture6 display data by okello erick
okelloerick
 
PPTX
Lecture5 my sql statements by okello erick
okelloerick
 
PPTX
Lecture4 php by okello erick
okelloerick
 
PPTX
Lecture3 php by okello erick
okelloerick
 
PPTX
Lecture3 mysql gui by okello erick
okelloerick
 
PPTX
Lecture2 mysql by okello erick
okelloerick
 
PPT
Data commn intro by okello erick
okelloerick
 
PPT
Computer networks--networking hardware
okelloerick
 
My sql statements by okello erick
okelloerick
 
Lecture8 php page control by okello erick
okelloerick
 
Lecture7 form processing by okello erick
okelloerick
 
Lecture6 display data by okello erick
okelloerick
 
Lecture5 my sql statements by okello erick
okelloerick
 
Lecture4 php by okello erick
okelloerick
 
Lecture3 php by okello erick
okelloerick
 
Lecture3 mysql gui by okello erick
okelloerick
 
Lecture2 mysql by okello erick
okelloerick
 
Data commn intro by okello erick
okelloerick
 
Computer networks--networking hardware
okelloerick
 

Recently uploaded (20)

PDF
Software Development Company | KodekX
KodekX
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Software Development Company | KodekX
KodekX
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Software Development Methodologies in 2025
KodekX
 
This slide provides an overview Technology
mineshkharadi333
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 

Lecture1 introduction by okello erick

  • 2. Purpose Of Course  To impart theoretical and practical skills for developing web-based database systems using PHP, MYSQL and SQL 2
  • 3. Course Content  Overview of Client-side scripting technologies  Overview of Server-side scripting languages  An introduction to the Database tier with specific emphasis on MySQL  Learning PHP  PHP Basics:- Introduction, Installation, Syntax  Variables, Arrays and Strings  Operators  Conditions and Branches:- If...Else, Switch  Loops:- While Loops, For Loops  Functions  Forms: - Data Entry with $_GET $_POST functions and Validation  MySQL databases 3
  • 4. Course Content (cont...)  Database Basics  Loading a Database  MySQL command Interpreter  Creating a database  Modifying a database  Inserts, Updates, and Deletes  Querying a database  MySQL functions in PHP  Populating Web pages from a database  User-Driven Querying  Previous and Next Browsing  User Authentication and Management  Reporting 4
  • 5. Introduction  Welcome. If you are thumbing through these pages, you’re probably considering writing Web- based applications with PHP and MySQL.  If you decide to go with these tools, you’ll be in excellent company.  Thousands of developers from total newbies to programmers with years of experience are turning to PHP and MySQL for their Web-based projects, and for good reason. 5
  • 6. Introduction  PHP and MySQL are easy to use, fast, free, and powerful. If you want to get a dynamic Web site up quickly, there are no better choices.  PHP scripting language built for the Web. All the tasks common to Web development can be performed in PHP with an absolute minimum of effort.  MySQL excels at tasks common to dynamic Web sites. Whether you’re creating a content-management system or an e-commerce application, MySQL is a great choice for your data storage. 6
  • 7. How This Course Is Organized Part I: Working with MySQL  Before you code any PHP scripts you need to know how to design a database, create tables in your database, and get the information you want from the database.  Part I shows you just about everything you need to know to work with MySQL. 7
  • 8. How This Course Is Organized Part II: Working with PHP  As an applications developer, you will spend the bulk of your time writing scripts that access the database and present HTML to a user’s browser.  Part II starts by the basics of the PHP scripting language, covering how PHP works with variables, conditions, and control structures.  Part II also covers many of PHP’s functions and discusses techniques for writing clean, manageable code. 8
  • 9. How This Course Is Organized Part III: Simple Applications  In this part we present two applications: a guestbook and a survey. Here you see the lessons from Parts I and II put into practice as we build working applications. 9
  • 10. Apache  The Apache Web server is the most popular Web server. Like Linux, PHP, and MySQL, is an open- source project.  Apache works best in Unix environments, but also runs just fine under Windows.  PHP most often runs as an Apache extension, known as an Apache module. Apache is a great Web server. It is extremely quick and amazingly stable. 10
  • 11. Relational Databases  Relational database management systems (RDBMS) provide a great way to store and access complex information.  They predate the Web, Linux, and Windows, so there are many RDBMS to choose from. All the major databases make use of the Structured Query Language (SQL).  Some of the more popular commercial RDBMS are Oracle, Sybase, Informix, Microsoft’s SQL Server, and IBM’s DB2. In addition to MySQL, there are now two major open-source relational databases. Postgres and Borland 11
  • 12. Why PHP?  It’s fast and easy: From everything we know, we feel safe in saying that PHP is as fast as anything out there.  It’s cross-platform: PHP runs on Windows, 2000, NT, CE, XP and Unix and with both IIS and Apache. PHP works as well on as wide a variety of systems as any other available product.  It accesses everything: What do you need to access in the course of creating your Web applications? LDAP? IMAP mail server? Oracle? Informix? DB2? Whatever you need to use, it is more than likely that PHP has a built-in set of functions that make getting whatever you need very easy. 12
  • 13. Why PHP?  It’s constantly being improved  Your peers can support you: If you run into trouble if there’s a bug in your code that you just can’t figure out or if you can’t seem to fathom some function or another someone among the hundreds subscribed to PHP mailing lists will be happy to check and fix your code.  It’s free: If you have a computer, Linux, Apache, and PHP are all completely free. 13
  • 14. Why PHP?  PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)  PHP is compatible with almost all servers used today (Apache, IIS, etc.)  PHP supports a wide range of databases  PHP is free. Download it from the official PHP resource: www.php.net  PHP is easy to learn and runs efficiently on the server side 14
  • 15. Why MySQL?  It’s cost-effective: Think of Oracle installation? Get ready to shell out tens of thousands of dollars at a minimum. There’s no doubt that Oracle, Sybase, and Informix create terrific databases, but the cost involved is prohibitive for many. MySQL is free for development and can be used in a live production environment for a minimal cost  It’s quick and powerful: MySQL might not have every bell and whistle available for a relational database, but for most users it has plenty. If you are serving out Web content or creating a moderately sized commerce site, MySQL has all the power you need. 15
  • 16. Why MySQL?  It’s improving all the time: MySQL is improving at a staggering rate. The developers release updates frequently and are adding impressive features all the time. 16