LECTURE 3 MYSQL Database. PHP MYSQL CONNECTION MySQL is a database system used on the web MySQL is a database system that runs on a server MySQL is ideal.

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

UFCE8V-20-3 Information Systems Development 3 (SHAPE HK)
PHP and MySQL PHP for the Web, page PHP and MySQL MySQL Resource PHP – MySQL Resource
Lecture 4: Introduction to PHP 3 PHP & MySQL
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
1 CS428 Web Engineering Lecture 23 MySQL Basics (PHP - VI)
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
Powerpoint Templates Page 1 Powerpoint Templates Web Programming PHP MySql Ikbal Jamaludin.
© Yanbu University College YANBU UNIVERSITY COLLEGE Management Science Department © Yanbu University College Module 6:WEB SERVER AND SERVER SIDE SCRPTING,
MySQL GUI Administration Tools Rob Donahue Manager, Distributed Systems Development May 7th, 2001 Rob Donahue Manager, Distributed Systems Development.
PHP Data Object (PDO) Khaled Al-Sham’aa. What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform interface.
True or False? Programming languages can be used to update databases and communicate with other systems. True.
Nic Shulver, Retrieving Stored Data Introduction This set of slides shows: The information source database structure The data.
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
 Mysql – popular open-source database management system  PHP usually works with Mysql for web- based database applications  LAMP applications—Web-based.
MySQL. MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multiuser access to a number of databases. A third party.
Accessing MySQL with PHP IDIA 618 Fall 2014 Bridget M. Blodgett.
PHP Part 2.
PHP with MySQL 1.
PHP Features. Features Clean syntax. Object-oriented fundamentals. An extensible architecture that encourages innovation. Support for both current and.
MySQL Database Connection
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015.
Introduction to PHP Advanced Database System Lab no.1.
1 Radius + MySQL Authentication and Accounting AFNOG 2000 Cape Town, South Africa.
2010/11 : [1]PHP with MySQLBuilding Web Applications using MySQL and PHP (W1) PHP with MySQL.
Web Programming Language Week 7 Dr. Ken Cosh PHP and storage.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Enterprise PHP – Reading Data from a DB Reading Data from a relational database in PHP Nic Shulver, FCES, Staffordshire University Using the SQLi interface.
PHP and Mysql Database. PHP and Database Mysql – popular open-source database management system PHP usually works with Mysql for web-based database applications.
PHP Workshop ‹#› PHP Data Object (PDO). PHP Workshop ‹#› What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
MySQL. Is a SQL (Structured Query Language) database server. Can be accessed using PHP with embedded SQL Queries Supports Large DB’s, 60,000 tables with.
PHP: MySQL. PHP Connect to MySQL PHP 5 and later can work with a MySQL database using: – MySQLi extension (the "i" stands for improved) – PDO (PHP Data.
PHP Database Pemrograman Internet. PHP MySQL Database With PHP, you can connect to and manipulate databases. MySQL is the most popular database system.
Database MySQL Universitas Muhammadiyah Surakarta Yogiek Indra Kurniawan.
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
PHP Introduction PHP is a server-side scripting language.
Windows 7 WampServer 2.1 MySQL PHP 5.3 Script Apache Server User Record or Select Media Upload to Internet Return URL Forward URL Create.
PhpMyAdmin Matthew Walsh April 28, 2003 CMSC Shawn Sivy.
MySQL An Introduction Databases 101.
CHAPTER 10 PHP MySQL Database
Server Side Scripting. Common Gateway Interface (CGI) The web is a client-server system.
 To start using PHP, you can:  Find a web host with PHP and MySQL support  Install a web server on your own PC, and then install PHP and MySQL.
13 – PHP MySQL Connection Informatics Department Parahyangan Catholic University.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 2 – MySQL – database.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
Web Systems & Technologies
Fundamental of Databases
PHP: MySQL Lecture 14 Kanida Sinmai
Introduction to Dynamic Web Programming
PGT(CS) ,KV JHAGRAKHAND
Introduction to Web programming
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
Introduction to Web programming
ISC440: Web Programming 2 Server-side Scripting PHP 3
Accessing Your MySQL Database from the Web with PHP (Ch 11)
IntroductionToPHP Static vs. Dynamic websites
Tutorial 6 PHP & MySQL Li Xu
Install MySQL Community Server and MySQL Workbench
Introduction to Web programming
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Presentation transcript:

LECTURE 3 MYSQL Database

PHP MYSQL CONNECTION MySQL is a database system used on the web MySQL is a database system that runs on a server MySQL is ideal for both small and large applications MySQL is very fast, reliable, and easy to use MySQL uses standard SQL MySQL compiles on a number of platforms MySQL is free to download and use MySQL is developed, distributed, and supported by Oracle Corporation MySQL is named after co-founder Monty Widenius's daughter: My

PHP + MySQL Database System PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)

Example (MySQLi Object-Oriented) <?php $connection = new mysqli("localhost","ilyasgalacticos","","facebook"); $connected = false; if(!$connection->connect_error){ $connected = true; } if($connected){ $query = $connection->query(“ SELECT * FROM users “); while($row = $query->fetch_object()){ echo " ".$row->id." "; echo " ".$row->login." "; echo " ".$row->password." "; echo " ".$row->age." "; echo " ".$row->full_name." "; } ?>

RESULT:

INSERTING <?php $connection = new mysqli("localhost","ilyasgalacticos","","facebook"); $connected = false; if(!$connection->connect_error){ $connected = true; } if($connected){ $query = $connection->query(“ INSERT INTO users (id, login, full_name, password, age) VALUES (NULL,\”aziza\”, \” Aziza Kamet\”, \” qwerty\”, 19) “); } ?>

UPDATING <?php $connection = new mysqli("localhost","ilyasgalacticos","","facebook"); $connected = false; if(!$connection->connect_error){ $connected = true; } if($connected){ $query = $connection->query(“ UPDATE users SET login = \“symbat\”, age = 18 WHERE id = 3 ”); } ?>

DELETING <?php $connection = new mysqli("localhost","ilyasgalacticos","","facebook"); $connected = false; if(!$connection->connect_error){ $connected = true; } if($connected){ $query = $connection->query(“ DELETE FROM users WHERE id = 3 ”); } ?>

USING MYSQL in C9 In bash terminal(command line) to install mysql: mysql-ctl install To start mysql: mysql-ctl start To install phpmyadmin: phpmyadmin-ctl install