SlideShare a Scribd company logo
Php classes in mumbai
Introduction to
MySQL & PHP
By
Vibrant TechnologiesVibrant Technologies
& Computers& Computers
By
Vibrant TechnologiesVibrant Technologies
& Computers& Computers
MySQL & PHP, presented by Vibrant
Technologies & Computers
3
History of SQL
1974 - First version of SQL developed by Donald Chamberlin and Raymond
Boyce at IBM (SEQUEL). Used to manipulate and retrieve data in their
database.
1986 - American National Standards Institute (ANSI) standardizes SQL-86.
1999 – SQL3 supports new features like procedural & control-of-flow
statements, triggers, and regular expressions.
…..
2008 – SQL2008 - still modifying the language to date.
Popular SQL suppliers today
MySQL, Microsoft SQL Server, IBM DB2, Oracle 11g, PostgreSQLSQL
MySQL & PHP, presented by Vibrant
Technologies & Computers
4
Basic SQL Syntax
➔ Data Definition Language (DDL)
• CREATE TABLE / DATABASE / VIEW / etc.....
• ALTER ...
• DROP ...
➔ Data Manipulation Language (DML)
• SELECT ... FROM / INTO … WHERE ...
• INSERT INTO ... VALUES ...
• UPDATE … SET … WHERE ...
• DELETE FROM … WHERE ...
MySQL & PHP, presented by Vibrant
Technologies & Computers
5
Intro to PHP MySQL
➔ Released 23 May 1995.
➔ 11+ Million web servers using MySQL
➔ Similar, but not exactly same syntax as IBM DB2, Oracle 11g, etc...
➔ Open-source & free to download, under the GNU General Public
License.
➔ Coded in C / C++, Yacc parser, and custom lexical analyzer.
MySQL & PHP, presented by Vibrant
Technologies & Computers
6
MySQL Tutorial (1 of 2)
➔ Following from MySQL 5.1 Manual (3.3 Creating and using a database)
➔ For Command Prompt usage, follow these steps to use a database.
Enter password: XXXXX
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 4
Server version: 5.1.31-community MySQL Community Server (GPL)
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)
mysql> USE TEST;
Database changed
➔ You can now perform DML & DDL operations!
MySQL & PHP, presented by Vibrant
Technologies & Computers
7
MySQL Tutorial (2 of 2)
mysql> CREATE TABLE myTest (time DATE, note VARCHAR(10), id INT);
Query OK, 0 rows affected (0.11 sec)
mysql> DESCRIBE myTest;
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| time | date | YES | | NULL | |
| note | varchar(10) | YES | | NULL | |
| id | int(11) | YES | | NULL | |
+-------+-------------+------+-----+---------+-------+
3 rows in set (0.05 sec)
mysql> INSERT INTO myTest VALUES (NULL, "hello", 3);
Query OK, 1 row affected (0.05 sec)
mysql> SELECT * FROM myTest;
+------+-------+------+
| time | note | id |
+------+-------+------+
| NULL | hello | 3 |
+------+-------+------+
1 row in set (0.01 sec)
mysql>
MySQL & PHP, presented by Vibrant
Technologies & Computers
8
History of PHP
1994 - Rasmus Lerdorf wrote Common Gateway Interface (CGI) Binaries.
1995 - Personal Home Page Tools (PHP Tools) formed.
1997-8 - Zeev Suraski & Andi Gutmans wrote PHP parser. Their PHP3
became the PHP: Hypertext Preprocessor.
To 2008 - Various improvements & bug fixes.
➔ Old versions of PHP – Code not compiled. Only interpreted and run.
➔ After PHP4, Parser compiles input to produce bytecode for Zend Engine
processing.
MySQL & PHP, presented by Vibrant
Technologies & Computers
9
Intro to PHP
➔ PHP file runs on web server, inputs PHP code, compiles to bytecode,
outputs Web Pages.
➔ Creates Dynamic Web Pages, using Server Side Scripting. (like .asp, .jsp,
perl). Clients “Run” these web pages when visited.
➔ Similar programming structure / syntax as C or Javascript. Other “Tools”
included in PHP releases like ImageJPEG($im,$destpic,
$jpeg_thumb_quality);
➔ HTML (markup language) usually used along with PHP.
MySQL & PHP, presented by Vibrant
Technologies & Computers
10
PHP Syntax
➔ <?php PHP code here ?>
➔ $variable //automatic type detection on assignment.
➔ $ is escape character for variables within double quotes
➔ $newVar = “$string1 hihi!” //replaces $string1 with its value.
➔ “Double quotes” = variable replacement
➔ 'Single quotes' = literal string
➔ That 3rd
set of quotes (`???`) = some other use
➔ function generateThumbnail($sourceImg, $destImg){ }
MySQL & PHP, presented by Vibrant
Technologies & Computers
11
PHP Examples
MySQL & PHP, presented by Vibrant
Technologies & Computers
12
Some MySQL + PHP Uses
➔ Managing database from the web. Phymyadmin is a commonly used
remote database management system via a PHP interface.
➔ User places buy order on your website, and info is stored in DB.
➔ Progressively build a SQL Query string.
➔ PHP can blend with anything else on an HTML webpage, and even
dynamically generate more web code.
➔ Make and test your own website / program.
MySQL & PHP, presented by Vibrant
Technologies & Computers
13
PhpBB
MySQL & PHP, presented by Vibrant
Technologies & Computers
14
PhpMyAdmin
MySQL & PHP, presented by Vibrant
Technologies & Computers
15
MySQL + PHP
Need a web server that connects to a local or remote Database?
No problem!
Host most likely “localhost”.
To perform SQL commands, try this php function...
$sql = mysql_query(“SELECT * FROM myTable);
Just like with Java and its JDBC.
There is a way to iterate through the resulting bag.
MySQL & PHP, presented by Vibrant
Technologies & Computers
16
List all query results Ex.
MySQL & PHP, presented by Vibrant
Technologies & Computers
17
PHP Control Structure Ex.
PHP is much like C, Java, or Javascript in some ways.
This will print 0123456789
MySQL & PHP, presented by Vibrant
Technologies & Computers
18
Form Post Ex. (1 of 2)
• Test.php is purely HTML.
• Form's POST action sends the object names to PHP file.
• PHP file extracts them with array $_POST[].
MySQL & PHP, presented by Vibrant
Technologies & Computers
19
Form Post Ex. (2 of 2)
MySQL & PHP, presented by Vibrant
Technologies & Computers
20
How do I get PHP or MySQL?
Mysql.com (100 MB)
php.net (for reference)
Some web server, like Apache or Wampserver will work.
For the examples, I used Wampserver (wampserver.com) (16 MB)
1. Installed MySQL
2. created some new tables with mysql
3. installed Wampserver
4. make .PHP files and put them in the www folder
5. Go to http://localhost/my.php
6. test your code.
MySQL & PHP, presented by Vibrant
Technologies & Computers
21
MySQL-PHP Conclusion
➔ MySQL is open-source and PHP is open-library.
➔ MySQL and PHP work well together.
➔ Free. Fairly simple and familiar to program with.
➔ MySQL is fast enough, but PHP is fairly slow.
➔ Many real-world applications on-line or even in a local network.
➔ If you are sick of MySQL command line, go get a web server with
PhpMyAdmin.
Thank You!!Thank You!!

More Related Content

What's hot (20)

PPT
PHP and MySQL
webhostingguy
 
PDF
External Language Stored Procedures for MySQL
Antony T Curtis
 
PDF
Using Perl Stored Procedures for MariaDB
Antony T Curtis
 
PDF
PDO Basics - PHPMelb 2014
andrewdotcom
 
PDF
4.3 MySQL + PHP
Jalpesh Vasa
 
PPTX
Cake PHP 3 Presentaion
glslarmenta
 
PPT
Php MySql For Beginners
Priti Solanki
 
PPT
PHP - PDO Objects
AJINKYA N
 
PDF
Introduction to php database connectivity
baabtra.com - No. 1 supplier of quality freshers
 
PDF
lab56_db
tutorialsruby
 
PPTX
Database Connectivity in PHP
Taha Malampatti
 
PPT
PHP - Getting good with MySQL part II
Firdaus Adib
 
ODP
Adodb Pdo Presentation
Tom Rogers
 
PPT
SQLMAP Tool Usage - A Heads Up
Mindfire Solutions
 
PPT
MySQL
Gouthaman V
 
PPTX
Mysql
lotlot
 
PPTX
Sqlmap
Rushikesh Kulkarni
 
PHP and MySQL
webhostingguy
 
External Language Stored Procedures for MySQL
Antony T Curtis
 
Using Perl Stored Procedures for MariaDB
Antony T Curtis
 
PDO Basics - PHPMelb 2014
andrewdotcom
 
4.3 MySQL + PHP
Jalpesh Vasa
 
Cake PHP 3 Presentaion
glslarmenta
 
Php MySql For Beginners
Priti Solanki
 
PHP - PDO Objects
AJINKYA N
 
Introduction to php database connectivity
baabtra.com - No. 1 supplier of quality freshers
 
lab56_db
tutorialsruby
 
Database Connectivity in PHP
Taha Malampatti
 
PHP - Getting good with MySQL part II
Firdaus Adib
 
Adodb Pdo Presentation
Tom Rogers
 
SQLMAP Tool Usage - A Heads Up
Mindfire Solutions
 
Mysql
lotlot
 

Viewers also liked (20)

PPTX
Afghanistan
sh3raz
 
PPTX
System and law of poland
Elpida Adalopoulou
 
PPTX
Food art
Elpida Adalopoulou
 
PDF
Dubai Food Carnival 2015
Michael Eberle
 
PPT
Pizza And Painting Food As Art
William Spaulding
 
PPS
Food Art :-)
Sylvi O.
 
PPT
Edward Hopper
almudenaresad
 
PPTX
Food Art
Gianni Locatelli
 
PPS
Food Art
thenickwhite
 
PPT
Food art power point
mec3q
 
PPS
Food Art
Severus Prime
 
PDF
Food art
FoodRhythms
 
PPS
Beautiful Greece
Lavennder M
 
PPTX
Art From Food
Mihex
 
PPT
Food art
lys167
 
PDF
Food art
Misato Morino
 
PPTX
CLAES OLDENBURG DES 104 PRESENTATION
Bec Lazenby
 
PPS
Carl Warner Food Art
Viorica Munteanu
 
PPTX
Claes oldenburg
Erika Patterson
 
PPS
Sculptures with fruits
Lavennder M
 
Afghanistan
sh3raz
 
System and law of poland
Elpida Adalopoulou
 
Dubai Food Carnival 2015
Michael Eberle
 
Pizza And Painting Food As Art
William Spaulding
 
Food Art :-)
Sylvi O.
 
Edward Hopper
almudenaresad
 
Food Art
thenickwhite
 
Food art power point
mec3q
 
Food Art
Severus Prime
 
Food art
FoodRhythms
 
Beautiful Greece
Lavennder M
 
Art From Food
Mihex
 
Food art
lys167
 
Food art
Misato Morino
 
CLAES OLDENBURG DES 104 PRESENTATION
Bec Lazenby
 
Carl Warner Food Art
Viorica Munteanu
 
Claes oldenburg
Erika Patterson
 
Sculptures with fruits
Lavennder M
 
Ad

Similar to Php classes in mumbai (20)

PPTX
Php reports sumit
Sumit Biswas
 
PDF
Php simple
PrinceGuru MS
 
PPTX
Lecture1 introduction by okello erick
okelloerick
 
PDF
Php my sql programing - brochure
Zabeel Institute
 
PPTX
Connecting to my sql using PHP
Nisa Soomro
 
PDF
Php summary
Michelle Darling
 
ODP
Php modul-3
Kristophorus Hadiono
 
PPT
PHP - Introduction to PHP Date and Time Functions
Vibrant Technologies & Computers
 
PDF
Php mysql-tutorial-en
soft deal solution
 
PDF
php_mysql_tutorial
tutorialsruby
 
PDF
php_mysql_tutorial
tutorialsruby
 
PPTX
Learn PHP Lacture2
ADARSH BHATT
 
PPTX
Php mysql online training
GoLogica Technologies
 
PPT
php databse handling
kunj desai
 
PPT
PHP and MySQL
bmani
 
PDF
Learning Mysql Seyed Mm Saied Tahaghoghi Hugh Williams
margasmst
 
PDF
Responsive WEB APP using cakePHP
Edureka!
 
PPTX
Php with mysql ppt
Rajamanickam Gomathijayam
 
Php reports sumit
Sumit Biswas
 
Php simple
PrinceGuru MS
 
Lecture1 introduction by okello erick
okelloerick
 
Php my sql programing - brochure
Zabeel Institute
 
Connecting to my sql using PHP
Nisa Soomro
 
Php summary
Michelle Darling
 
PHP - Introduction to PHP Date and Time Functions
Vibrant Technologies & Computers
 
Php mysql-tutorial-en
soft deal solution
 
php_mysql_tutorial
tutorialsruby
 
php_mysql_tutorial
tutorialsruby
 
Learn PHP Lacture2
ADARSH BHATT
 
Php mysql online training
GoLogica Technologies
 
php databse handling
kunj desai
 
PHP and MySQL
bmani
 
Learning Mysql Seyed Mm Saied Tahaghoghi Hugh Williams
margasmst
 
Responsive WEB APP using cakePHP
Edureka!
 
Php with mysql ppt
Rajamanickam Gomathijayam
 
Ad

Recently uploaded (20)

PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
Dimensions of Societal Planning in Commonism
StefanMz
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 

Php classes in mumbai

  • 2. Introduction to MySQL & PHP By Vibrant TechnologiesVibrant Technologies & Computers& Computers By Vibrant TechnologiesVibrant Technologies & Computers& Computers
  • 3. MySQL & PHP, presented by Vibrant Technologies & Computers 3 History of SQL 1974 - First version of SQL developed by Donald Chamberlin and Raymond Boyce at IBM (SEQUEL). Used to manipulate and retrieve data in their database. 1986 - American National Standards Institute (ANSI) standardizes SQL-86. 1999 – SQL3 supports new features like procedural & control-of-flow statements, triggers, and regular expressions. ….. 2008 – SQL2008 - still modifying the language to date. Popular SQL suppliers today MySQL, Microsoft SQL Server, IBM DB2, Oracle 11g, PostgreSQLSQL
  • 4. MySQL & PHP, presented by Vibrant Technologies & Computers 4 Basic SQL Syntax ➔ Data Definition Language (DDL) • CREATE TABLE / DATABASE / VIEW / etc..... • ALTER ... • DROP ... ➔ Data Manipulation Language (DML) • SELECT ... FROM / INTO … WHERE ... • INSERT INTO ... VALUES ... • UPDATE … SET … WHERE ... • DELETE FROM … WHERE ...
  • 5. MySQL & PHP, presented by Vibrant Technologies & Computers 5 Intro to PHP MySQL ➔ Released 23 May 1995. ➔ 11+ Million web servers using MySQL ➔ Similar, but not exactly same syntax as IBM DB2, Oracle 11g, etc... ➔ Open-source & free to download, under the GNU General Public License. ➔ Coded in C / C++, Yacc parser, and custom lexical analyzer.
  • 6. MySQL & PHP, presented by Vibrant Technologies & Computers 6 MySQL Tutorial (1 of 2) ➔ Following from MySQL 5.1 Manual (3.3 Creating and using a database) ➔ For Command Prompt usage, follow these steps to use a database. Enter password: XXXXX Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 4 Server version: 5.1.31-community MySQL Community Server (GPL) Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | +--------------------+ 3 rows in set (0.00 sec) mysql> USE TEST; Database changed ➔ You can now perform DML & DDL operations!
  • 7. MySQL & PHP, presented by Vibrant Technologies & Computers 7 MySQL Tutorial (2 of 2) mysql> CREATE TABLE myTest (time DATE, note VARCHAR(10), id INT); Query OK, 0 rows affected (0.11 sec) mysql> DESCRIBE myTest; +-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | time | date | YES | | NULL | | | note | varchar(10) | YES | | NULL | | | id | int(11) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+ 3 rows in set (0.05 sec) mysql> INSERT INTO myTest VALUES (NULL, "hello", 3); Query OK, 1 row affected (0.05 sec) mysql> SELECT * FROM myTest; +------+-------+------+ | time | note | id | +------+-------+------+ | NULL | hello | 3 | +------+-------+------+ 1 row in set (0.01 sec) mysql>
  • 8. MySQL & PHP, presented by Vibrant Technologies & Computers 8 History of PHP 1994 - Rasmus Lerdorf wrote Common Gateway Interface (CGI) Binaries. 1995 - Personal Home Page Tools (PHP Tools) formed. 1997-8 - Zeev Suraski & Andi Gutmans wrote PHP parser. Their PHP3 became the PHP: Hypertext Preprocessor. To 2008 - Various improvements & bug fixes. ➔ Old versions of PHP – Code not compiled. Only interpreted and run. ➔ After PHP4, Parser compiles input to produce bytecode for Zend Engine processing.
  • 9. MySQL & PHP, presented by Vibrant Technologies & Computers 9 Intro to PHP ➔ PHP file runs on web server, inputs PHP code, compiles to bytecode, outputs Web Pages. ➔ Creates Dynamic Web Pages, using Server Side Scripting. (like .asp, .jsp, perl). Clients “Run” these web pages when visited. ➔ Similar programming structure / syntax as C or Javascript. Other “Tools” included in PHP releases like ImageJPEG($im,$destpic, $jpeg_thumb_quality); ➔ HTML (markup language) usually used along with PHP.
  • 10. MySQL & PHP, presented by Vibrant Technologies & Computers 10 PHP Syntax ➔ <?php PHP code here ?> ➔ $variable //automatic type detection on assignment. ➔ $ is escape character for variables within double quotes ➔ $newVar = “$string1 hihi!” //replaces $string1 with its value. ➔ “Double quotes” = variable replacement ➔ 'Single quotes' = literal string ➔ That 3rd set of quotes (`???`) = some other use ➔ function generateThumbnail($sourceImg, $destImg){ }
  • 11. MySQL & PHP, presented by Vibrant Technologies & Computers 11 PHP Examples
  • 12. MySQL & PHP, presented by Vibrant Technologies & Computers 12 Some MySQL + PHP Uses ➔ Managing database from the web. Phymyadmin is a commonly used remote database management system via a PHP interface. ➔ User places buy order on your website, and info is stored in DB. ➔ Progressively build a SQL Query string. ➔ PHP can blend with anything else on an HTML webpage, and even dynamically generate more web code. ➔ Make and test your own website / program.
  • 13. MySQL & PHP, presented by Vibrant Technologies & Computers 13 PhpBB
  • 14. MySQL & PHP, presented by Vibrant Technologies & Computers 14 PhpMyAdmin
  • 15. MySQL & PHP, presented by Vibrant Technologies & Computers 15 MySQL + PHP Need a web server that connects to a local or remote Database? No problem! Host most likely “localhost”. To perform SQL commands, try this php function... $sql = mysql_query(“SELECT * FROM myTable); Just like with Java and its JDBC. There is a way to iterate through the resulting bag.
  • 16. MySQL & PHP, presented by Vibrant Technologies & Computers 16 List all query results Ex.
  • 17. MySQL & PHP, presented by Vibrant Technologies & Computers 17 PHP Control Structure Ex. PHP is much like C, Java, or Javascript in some ways. This will print 0123456789
  • 18. MySQL & PHP, presented by Vibrant Technologies & Computers 18 Form Post Ex. (1 of 2) • Test.php is purely HTML. • Form's POST action sends the object names to PHP file. • PHP file extracts them with array $_POST[].
  • 19. MySQL & PHP, presented by Vibrant Technologies & Computers 19 Form Post Ex. (2 of 2)
  • 20. MySQL & PHP, presented by Vibrant Technologies & Computers 20 How do I get PHP or MySQL? Mysql.com (100 MB) php.net (for reference) Some web server, like Apache or Wampserver will work. For the examples, I used Wampserver (wampserver.com) (16 MB) 1. Installed MySQL 2. created some new tables with mysql 3. installed Wampserver 4. make .PHP files and put them in the www folder 5. Go to http://localhost/my.php 6. test your code.
  • 21. MySQL & PHP, presented by Vibrant Technologies & Computers 21 MySQL-PHP Conclusion ➔ MySQL is open-source and PHP is open-library. ➔ MySQL and PHP work well together. ➔ Free. Fairly simple and familiar to program with. ➔ MySQL is fast enough, but PHP is fairly slow. ➔ Many real-world applications on-line or even in a local network. ➔ If you are sick of MySQL command line, go get a web server with PhpMyAdmin.