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

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

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.