SlideShare a Scribd company logo
1 of 29
Overview ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Download and install mysql gui ,[object Object],[object Object]
What is a database ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is a data kildare Male Couper Tristan 01/01/1987 kildare Male Connolly Aidan kildare Male Clarke Richard 13/07/1980 meath Female Griffin Sheila 11/11/1977 meath Male Meagher David  01/05/1978 dublin Male O'Sullivan John 31/05/1972 dublin Male Murphy John date of birth County Gender Surname First Name
What is a database Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David  3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id
What are data types Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David  3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date varchar varchar varchar varchar integer
What is data normalization Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David  3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id
What is data normalization Address table county table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David  3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id meath kildare dublin County
What is data normalization Address table county table 2 Male Couper Tristan 7 01/01/1987 2 Male Connolly Aidan 6 2 Male Clarke Richard 5 13/07/1980 3 Female Griffin Sheila 4 11/11/1977 3 Male Meagher David  3 01/05/1978 1 Male O'Sullivan John 2 31/05/1972 1 Male Murphy John 1 date of birth CId Gender Surname First Name id meath 3 kildare 2 dublin 1 County Cid
Connecting to MySQL ,[object Object],[object Object],[object Object],[object Object]
Creating a database in MySQL ,[object Object],[object Object]
Creating a table in MySQL ,[object Object],[object Object],[object Object]
Adding data in MySQL ,[object Object]
Adding data in MySQL ,[object Object]
MySQL Query to select data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MySQL Query to insert data ,[object Object]
MySQL Query to update data ,[object Object],[object Object],[object Object]
MySQL Query to Delete data ,[object Object],[object Object],[object Object]
Connecting to a Database through PHP ,[object Object],[object Object],[object Object]
Connecting to a Database through PHP ,[object Object],[object Object],[object Object]
Connecting to a Database through PHP ,[object Object],<?php // This is an example of dbconfig.php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password'; $dbname = 'myDBname'; ?>  <?php // This is an example dbopen.php $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); ?>
Connecting to a Database through PHP <?php include 'DBconfig.php'; include 'DBopen.php'; // ... do something like insert or select, etc ?>
Closing a Database through PHP <?php // an example of  closedb.php // it does nothing but closing // a mysql database connection mysql_close($conn); ?> <?php include 'config.php'; include 'opendb.php'; // ... do something like // insert or select, etc include 'dbclose.php'; ?>
Listing data in a database using PHP To get PHP to execute MySQL statements we must use the  mysql_query()  function. This function is used to send a  query  or  command  to a MySQL connection. e.g.: Using PHP you can run a MySQL  SELECT  query to fetch the data out of the database.  You have several options in fetching information from MySQL. PHP provide several functions for this.  The first one is  mysql_fetch_array()   which fetches a result row as an  associative array , a  numeric   array , or both.  Below is an example of fetching data from MySQL, the table  contacts  has three columns; cF name , c Lname  and c Age .
Listing data in a database using PHP <?php include 'DBconfig.php'; include 'DBopen.php'; $query = &quot;SELECT cFname, cLname, cAge FROM contacts&quot;; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ echo &quot;First Name: $row[Fname] <br>&quot;. &quot;Second Name: $row[Lname] <br>&quot;. &quot;Age: $row[age] <br><br>&quot;; } include 'DBclose.php'; ?>
Insert Data from a Form into a Database  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Insert Data from a Form into a Database ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Select Data From a Database Table with php  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Display the Result in an HTML Table  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Advanced MongoDB Aggregation Pipelines
Advanced MongoDB Aggregation PipelinesAdvanced MongoDB Aggregation Pipelines
Advanced MongoDB Aggregation PipelinesTom Schreiber
 
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntu
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntuMengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntu
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntuAlferizhy Chalter
 
Rooted 2010 ppp
Rooted 2010 pppRooted 2010 ppp
Rooted 2010 pppnoc_313
 
Hi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab PresentationHi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab Presentationplindner
 
Php mysql connectivity
Php mysql connectivityPhp mysql connectivity
Php mysql connectivityabhikwb
 
Android Lab Test : Reading the foot file list (english)
Android Lab Test : Reading the foot file list (english)Android Lab Test : Reading the foot file list (english)
Android Lab Test : Reading the foot file list (english)Bruno Delb
 
Idoc script beginner guide
Idoc script beginner guide Idoc script beginner guide
Idoc script beginner guide Vinay Kumar
 
The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)Simon Willison
 
Database adapter
Database adapterDatabase adapter
Database adapterxavier john
 
Database presentation
Database presentationDatabase presentation
Database presentationwebhostingguy
 
Bigdive 2014 - RDF, principles and case studies
Bigdive 2014 - RDF, principles and case studiesBigdive 2014 - RDF, principles and case studies
Bigdive 2014 - RDF, principles and case studiesDiego Valerio Camarda
 
File upload for the 21st century
File upload for the 21st centuryFile upload for the 21st century
File upload for the 21st centuryJiří Pudil
 
Working with LifeDesks
Working with LifeDesksWorking with LifeDesks
Working with LifeDesksKatja Schulz
 
What Is Seo How Search Engine Works
What Is Seo How Search Engine WorksWhat Is Seo How Search Engine Works
What Is Seo How Search Engine WorksAddithink
 
13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / SpecificityIn a Rocket
 

What's hot (18)

Session1+2
Session1+2Session1+2
Session1+2
 
Advanced MongoDB Aggregation Pipelines
Advanced MongoDB Aggregation PipelinesAdvanced MongoDB Aggregation Pipelines
Advanced MongoDB Aggregation Pipelines
 
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntu
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntuMengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntu
Mengembalikan data yang terhapus atau rusak pada hardisk menggunakan ubuntu
 
Rooted 2010 ppp
Rooted 2010 pppRooted 2010 ppp
Rooted 2010 ppp
 
Hi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab PresentationHi5 Opensocial Code Lab Presentation
Hi5 Opensocial Code Lab Presentation
 
Session3
Session3Session3
Session3
 
Php mysql connectivity
Php mysql connectivityPhp mysql connectivity
Php mysql connectivity
 
Android Lab Test : Reading the foot file list (english)
Android Lab Test : Reading the foot file list (english)Android Lab Test : Reading the foot file list (english)
Android Lab Test : Reading the foot file list (english)
 
Sqlite perl
Sqlite perlSqlite perl
Sqlite perl
 
Idoc script beginner guide
Idoc script beginner guide Idoc script beginner guide
Idoc script beginner guide
 
The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)
 
Database adapter
Database adapterDatabase adapter
Database adapter
 
Database presentation
Database presentationDatabase presentation
Database presentation
 
Bigdive 2014 - RDF, principles and case studies
Bigdive 2014 - RDF, principles and case studiesBigdive 2014 - RDF, principles and case studies
Bigdive 2014 - RDF, principles and case studies
 
File upload for the 21st century
File upload for the 21st centuryFile upload for the 21st century
File upload for the 21st century
 
Working with LifeDesks
Working with LifeDesksWorking with LifeDesks
Working with LifeDesks
 
What Is Seo How Search Engine Works
What Is Seo How Search Engine WorksWhat Is Seo How Search Engine Works
What Is Seo How Search Engine Works
 
13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity
 

Viewers also liked

Transact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceTransact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceSteve Xu
 
Data definition language postgreSQL
Data definition language postgreSQLData definition language postgreSQL
Data definition language postgreSQLFederico Ranieri
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationGuru Ji
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedSlideShare
 

Viewers also liked (7)

Transact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceTransact sql data definition language - ddl- reference
Transact sql data definition language - ddl- reference
 
Data definition language postgreSQL
Data definition language postgreSQLData definition language postgreSQL
Data definition language postgreSQL
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
MYSQL.ppt
MYSQL.pptMYSQL.ppt
MYSQL.ppt
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 

Similar to Introtodatabase 1

P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kianphelios
 
Php MySql For Beginners
Php MySql For BeginnersPhp MySql For Beginners
Php MySql For BeginnersPriti Solanki
 
Php Data Objects
Php Data ObjectsPhp Data Objects
Php Data Objectshiren.joshi
 
Diva10
Diva10Diva10
Diva10diva23
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...webhostingguy
 
12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Indexwebhostingguy
 
PHP and MySQL.pptx
PHP and MySQL.pptxPHP and MySQL.pptx
PHP and MySQL.pptxnatesanp1234
 
Web Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesWeb Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesManish Sinha
 
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docx
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docxModule 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docx
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docxmoirarandell
 
Concern of Web Application Security
Concern of Web Application SecurityConcern of Web Application Security
Concern of Web Application SecurityMahmud Ahsan
 
Php My Sql Security 2007
Php My Sql Security 2007Php My Sql Security 2007
Php My Sql Security 2007Aung Khant
 
MYSQL
MYSQLMYSQL
MYSQLARJUN
 

Similar to Introtodatabase 1 (20)

Ubi comp27nov04
Ubi comp27nov04Ubi comp27nov04
Ubi comp27nov04
 
P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kian
 
Php MySql For Beginners
Php MySql For BeginnersPhp MySql For Beginners
Php MySql For Beginners
 
Mysql DBI
Mysql DBIMysql DBI
Mysql DBI
 
Sah
SahSah
Sah
 
MYSQL
MYSQLMYSQL
MYSQL
 
SQL -PHP Tutorial
SQL -PHP TutorialSQL -PHP Tutorial
SQL -PHP Tutorial
 
Php Data Objects
Php Data ObjectsPhp Data Objects
Php Data Objects
 
Diva10
Diva10Diva10
Diva10
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
 
12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index
 
Security.ppt
Security.pptSecurity.ppt
Security.ppt
 
PHP and MySQL.pptx
PHP and MySQL.pptxPHP and MySQL.pptx
PHP and MySQL.pptx
 
Web Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesWeb Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) Slides
 
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docx
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docxModule 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docx
Module 6WEB SERVER AND SERVER SIDE SCRPTING, PART-2Chapte.docx
 
Php My Sql
Php My SqlPhp My Sql
Php My Sql
 
Mysql
MysqlMysql
Mysql
 
Concern of Web Application Security
Concern of Web Application SecurityConcern of Web Application Security
Concern of Web Application Security
 
Php My Sql Security 2007
Php My Sql Security 2007Php My Sql Security 2007
Php My Sql Security 2007
 
MYSQL
MYSQLMYSQL
MYSQL
 

More from Digital Insights - Digital Marketing Agency

More from Digital Insights - Digital Marketing Agency (20)

Diploma-GCD-ContentMarketing-Personas-Week2
Diploma-GCD-ContentMarketing-Personas-Week2Diploma-GCD-ContentMarketing-Personas-Week2
Diploma-GCD-ContentMarketing-Personas-Week2
 
DigitalInsights-DigitalMarketingStrategy&Planning
DigitalInsights-DigitalMarketingStrategy&PlanningDigitalInsights-DigitalMarketingStrategy&Planning
DigitalInsights-DigitalMarketingStrategy&Planning
 
DI-Facebook-DCEB-Session
DI-Facebook-DCEB-SessionDI-Facebook-DCEB-Session
DI-Facebook-DCEB-Session
 
DBS-Week2-DigitalStrategySession
DBS-Week2-DigitalStrategySessionDBS-Week2-DigitalStrategySession
DBS-Week2-DigitalStrategySession
 
GCD-Measurement&Analytics-Week11
GCD-Measurement&Analytics-Week11GCD-Measurement&Analytics-Week11
GCD-Measurement&Analytics-Week11
 
DBS-Week1-Introduction&OverviewDigitalMarketing
DBS-Week1-Introduction&OverviewDigitalMarketingDBS-Week1-Introduction&OverviewDigitalMarketing
DBS-Week1-Introduction&OverviewDigitalMarketing
 
DCEB-DigitalStrategySession-Jan24th
DCEB-DigitalStrategySession-Jan24thDCEB-DigitalStrategySession-Jan24th
DCEB-DigitalStrategySession-Jan24th
 
GCD-eCommcereCaseStudies
GCD-eCommcereCaseStudiesGCD-eCommcereCaseStudies
GCD-eCommcereCaseStudies
 
GCD-Week8-EmailMarketing
GCD-Week8-EmailMarketingGCD-Week8-EmailMarketing
GCD-Week8-EmailMarketing
 
GCD-Week7-SEO-Session
GCD-Week7-SEO-SessionGCD-Week7-SEO-Session
GCD-Week7-SEO-Session
 
Week12-DBS-ReviewAndPlanningSession
Week12-DBS-ReviewAndPlanningSessionWeek12-DBS-ReviewAndPlanningSession
Week12-DBS-ReviewAndPlanningSession
 
GCD-Week5-Facebook-LinkedIn-Ads
GCD-Week5-Facebook-LinkedIn-AdsGCD-Week5-Facebook-LinkedIn-Ads
GCD-Week5-Facebook-LinkedIn-Ads
 
DBS-Week11-Measurement&Analyics
DBS-Week11-Measurement&AnalyicsDBS-Week11-Measurement&Analyics
DBS-Week11-Measurement&Analyics
 
GCD-Week6-PPC-Ads-Session
GCD-Week6-PPC-Ads-SessionGCD-Week6-PPC-Ads-Session
GCD-Week6-PPC-Ads-Session
 
RPC-Wordpress-Session
RPC-Wordpress-SessionRPC-Wordpress-Session
RPC-Wordpress-Session
 
DBS-Week10-EcommSites&SalesFunnells
DBS-Week10-EcommSites&SalesFunnellsDBS-Week10-EcommSites&SalesFunnells
DBS-Week10-EcommSites&SalesFunnells
 
GCD-Week5-SocialMediaPlatforms
GCD-Week5-SocialMediaPlatformsGCD-Week5-SocialMediaPlatforms
GCD-Week5-SocialMediaPlatforms
 
DBS-Week3-B2C&B2B-ContentMarketing-Session
DBS-Week3-B2C&B2B-ContentMarketing-SessionDBS-Week3-B2C&B2B-ContentMarketing-Session
DBS-Week3-B2C&B2B-ContentMarketing-Session
 
ECM-PPC-Session
ECM-PPC-SessionECM-PPC-Session
ECM-PPC-Session
 
DBS-Week9-Wordpress-Session
DBS-Week9-Wordpress-SessionDBS-Week9-Wordpress-Session
DBS-Week9-Wordpress-Session
 

Recently uploaded

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Recently uploaded (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

Introtodatabase 1

  • 1.
  • 2.
  • 3.
  • 4. What is a data kildare Male Couper Tristan 01/01/1987 kildare Male Connolly Aidan kildare Male Clarke Richard 13/07/1980 meath Female Griffin Sheila 11/11/1977 meath Male Meagher David 01/05/1978 dublin Male O'Sullivan John 31/05/1972 dublin Male Murphy John date of birth County Gender Surname First Name
  • 5. What is a database Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David 3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id
  • 6. What are data types Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David 3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date varchar varchar varchar varchar integer
  • 7. What is data normalization Address table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David 3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id
  • 8. What is data normalization Address table county table kildare Male Couper Tristan 7 01/01/1987 kildare Male Connolly Aidan 6 kildare Male Clarke Richard 5 13/07/1980 meath Female Griffin Sheila 4 11/11/1977 meath Male Meagher David 3 01/05/1978 dublin Male O'Sullivan John 2 31/05/1972 dublin Male Murphy John 1 date of birth County Gender Surname First Name id meath kildare dublin County
  • 9. What is data normalization Address table county table 2 Male Couper Tristan 7 01/01/1987 2 Male Connolly Aidan 6 2 Male Clarke Richard 5 13/07/1980 3 Female Griffin Sheila 4 11/11/1977 3 Male Meagher David 3 01/05/1978 1 Male O'Sullivan John 2 31/05/1972 1 Male Murphy John 1 date of birth CId Gender Surname First Name id meath 3 kildare 2 dublin 1 County Cid
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Connecting to a Database through PHP <?php include 'DBconfig.php'; include 'DBopen.php'; // ... do something like insert or select, etc ?>
  • 23. Closing a Database through PHP <?php // an example of closedb.php // it does nothing but closing // a mysql database connection mysql_close($conn); ?> <?php include 'config.php'; include 'opendb.php'; // ... do something like // insert or select, etc include 'dbclose.php'; ?>
  • 24. Listing data in a database using PHP To get PHP to execute MySQL statements we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection. e.g.: Using PHP you can run a MySQL SELECT query to fetch the data out of the database. You have several options in fetching information from MySQL. PHP provide several functions for this. The first one is mysql_fetch_array() which fetches a result row as an associative array , a numeric array , or both. Below is an example of fetching data from MySQL, the table contacts has three columns; cF name , c Lname and c Age .
  • 25. Listing data in a database using PHP <?php include 'DBconfig.php'; include 'DBopen.php'; $query = &quot;SELECT cFname, cLname, cAge FROM contacts&quot;; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ echo &quot;First Name: $row[Fname] <br>&quot;. &quot;Second Name: $row[Lname] <br>&quot;. &quot;Age: $row[age] <br><br>&quot;; } include 'DBclose.php'; ?>
  • 26.
  • 27.
  • 28.
  • 29.