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

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
 

Similar to Lecture1 introduction by okello erick (20)

PDF
php_mysql_tutorial
tutorialsruby
 
PDF
php_mysql_tutorial
tutorialsruby
 
PDF
Php frameworks
Yavana Subrahmanya Vaageesh
 
PPTX
Php reports sumit
Sumit Biswas
 
PPTX
Connecting to my sql using PHP
Nisa Soomro
 
PPTX
introduction to backend with php 8.X - slide.pptx
geremilibrary
 
PDF
Php simple
PrinceGuru MS
 
PPT
PHP and MySQL
bmani
 
PPTX
Web programming
Ishucs
 
PDF
Php my sql programing - brochure
Zabeel Institute
 
PPTX
Introduction to webprogramming using PHP and MySQL
anand raj
 
PDF
Summer training report priyanka
priyanka kumari
 
PDF
Php mysql-tutorial-en
soft deal solution
 
PPTX
Php
Yesha kapadia
 
PPTX
Php with mysql ppt
Rajamanickam Gomathijayam
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PPTX
Introduction to php
shanmukhareddy dasi
 
PPTX
Php introduction and configuration
Vijay Kumar Verma
 
PDF
PHP Basics
Roohul Amin
 
PPT
Php classes in mumbai
aadi Surve
 
php_mysql_tutorial
tutorialsruby
 
php_mysql_tutorial
tutorialsruby
 
Php reports sumit
Sumit Biswas
 
Connecting to my sql using PHP
Nisa Soomro
 
introduction to backend with php 8.X - slide.pptx
geremilibrary
 
Php simple
PrinceGuru MS
 
PHP and MySQL
bmani
 
Web programming
Ishucs
 
Php my sql programing - brochure
Zabeel Institute
 
Introduction to webprogramming using PHP and MySQL
anand raj
 
Summer training report priyanka
priyanka kumari
 
Php mysql-tutorial-en
soft deal solution
 
Php with mysql ppt
Rajamanickam Gomathijayam
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Introduction to php
shanmukhareddy dasi
 
Php introduction and configuration
Vijay Kumar Verma
 
PHP Basics
Roohul Amin
 
Php classes in mumbai
aadi Surve
 
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
 
Ad

Recently uploaded (20)

PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 

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