PHP MySQL - University Of The West Of England, Bristol

2y ago
1.09 MB
21 Pages
Last View : 2m ago
Last Download : 2m ago
Upload by : Philip Renner

UQC103S1UFCE47-20-1Systems Developmentuqc103s/UFCE47-20-1 PHP-mySQL1

Who? jtwebb/uqc103s1/uqc103s/UFCE47-20-1 PHP-mySQL2

HELP is at HANDuqc103s/UFCE47-20-1 PHP-mySQL3

PHP and mySQLA crash course In this lecture we will consider: What is mySQL?Why PHP and mySQL?How to get and install PHP/mySQLSome SQL Using mySQL (command line)Using PHP and mySQLuqc103s/UFCE47-20-1 PHP-mySQL4

What is mySQL? The World’s Most Popular Open Source Database A DBMS - Database Management System more than 4 million active installationsSupports a database and allow client/server interactions(storing and retrieving information)On a large system a computer may be solely dedicated torunning the DBMSA DBA (DataBase Administrator) usuallymanages the databaseUsually a DBMS is very expensive to buy and/ormaintain.uqc103s/UFCE47-20-1 PHP-mySQL5

mySQL has Speed - written in C/C , multithreaded,optimisedFull data set - supports: float,double, enum, date, char, varchar etc.Full Command set (SQL92 compliant) select, insert, delete, show, "aliases" etcFunctions - e.g. avg(), sum(), max()Security - privilege and password systemScalable - can take billions of rows of dataLarge character set for internationalisationTools - admin and other accessuqc103s/UFCE47-20-1 PHP-mySQL6

Why PHP and mySQL MySQL is a key part of LAMP (Linux,Apache, MySQL, PHP / Perl / Python), afast growing open source enterprisesoftware stack. More and more companiesare using LAMP as an alternative toexpensive proprietary software stacksbecause of its lower cost and freedom luqc103s/UFCE47-20-1 PHP-mySQL7

How to get and install PHP/mySQL MySQL NOTE: In Apache users web pages are ininstall lBut don’t forget (mini -XAMPP) !!Apache/mySQL/PHP/Perl - download andinstall instructions (the "old" method shouldwork OK) mini-xampp download is about 13 Mbuqc103s/UFCE47-20-1 PHP-mySQL8

Starting Apache and mySQL Scripts to start and stop are in the minixampp installdirectoryStarting Apache starts an HTTP service on port 80(default) Starting mySQL starts a service on port 3066 (default) http://localhost/ or XAMPP contains a good admin tool for mySQLhttp://localhost/phpmyadmin/Apache (minixampp) users web pages are in:install dir\htdocsuqc103s/UFCE47-20-1 PHP-mySQL9

Stopping and Starting uqc103s/UFCE47-20-1 PHP-mySQL10

Basic SQL SQL - Structured Query Language "sequel" or "ess-cue-el"We will consider: creating a databasecreating a tablepopulating a table (inserting data)viewing a table (selecting data and ordering it)changing data (updating data)deleting datauqc103s/UFCE47-20-1 PHP-mySQL11

Using SQL with mySQL In the simplest case can use mySQL "onthe command line" (DOS prompt)the command to use mysql : install dir\mysql\bin\mysqlget a command prompt and change to the binfolder (or add mysql to your path)make sure mysql service has been startedtype "mysql" on the command lineuqc103s/UFCE47-20-1 PHP-mySQL12

Connecting to mySQLcreating a database and a tableuqc103s/UFCE47-20-1 PHP-mySQL13

Populating a tableViewing contentsuqc103s/UFCE47-20-1 PHP-mySQL14

More about select uqc103s/UFCE47-20-1 PHP-mySQL15

Changing and Deleting Datauqc103s/UFCE47-20-1 PHP-mySQL16

Using mySQL with PHP Example One: connect to mySQLselect a databasedefine a queryexecute querypresent resultsfree resourcesProgram - mysql1.phpuqc103s/UFCE47-20-1 PHP-mySQL17

PHP/mySQL - column headings We can add a bit moredetail: improved formattingorder by in selectinsert new dataadding column namesLINK: mysql2.phpuqc103s/UFCE47-20-1 PHP-mySQL18

Using PHP with HTML formsThe form PHP is commonlyused to process HTMLforms cf. CGI programsSee search1.htmluqc103s/UFCE47-20-1 PHP-mySQL19

The PHP Check input is OKconnect to databaserun querycheck outputprocess as beforeSee: form1.phpuqc103s/UFCE47-20-1 PHP-mySQL20

Some Helpful URLs mySQL - reference and tutorial PHP/mySQL tutorial 2a.html?tw programmingLearn SQL to MS Access (ODBC) example db odbc.aspuqc103s/UFCE47-20-1 PHP-mySQL21

uqc103s/UFCE47-20-1 PHP-mySQL 7 Why PHP and mySQL „ MySQL is a key part of LAMP (Linux, Apache, MySQL, PHP / Perl / Python), a fast growing open source enterprise software stack. More and more companies are using LAMP as an alternative to expensive proprietary software stacks because of its lower cost and freedom from lock-in.

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

MySQL PHP Syntax MySQL works very well in combination of various programming languages like PERL, C, C , JAVA and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities. PHP provides various functions to access MySQL database and to manipulate data records inside MySQL database.

MySQL is no longer enabled by default, so the php_mysql.dllDLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dllis included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH. See the FAQ titled "How do I add my PHP directory to the PATHon Windows" for .

Section 4: PHP and MySQL - The Structured Repository 4.1 PHP MySQL Connectivity 4.2 Integrating Web Forms and Database 4.3 Using PHP’s MySQL Extension 4.4 Using PHP’s PDO Extension Section 5: Learn More Advanced Techniques in PHP 5.1 Introduction to Object Oriented Programming 5.2 Classes and Objects

PHP is FREE to download from the official PHP resource: PHP is easy to learn and runs efficiently on the server side Where to Start? To get access to a web server with PHP support, you can: Install Apache (or IIS) on your own server, install PHP, and MySQL Or find a web hosting plan with PHP and

MySQL for Excel is a 32-bit add-in for Microsoft Excel, which you can install and run on Microsoft Windows. MySQL for Excel is not compatible with Linux or macOS. MySQL for Excel can interact with MySQL Workbench to simplify the management of MySQL connections when both MySQL client tools are installed.

Lifetime Support Oracle Premier Support Oracle Product Certifications MySQL Enterprise High Availability MySQL Enterprise Security MySQL Enterprise Scalability MySQL Enterprise Backup MySQL Enterprise Monitor/Query Analyzer MySQL Workbench MySQL Enterprise Edition. 11 MySQL Database

be a concise, but not superficial, treatment on GUI programming. Part III contains information on the features of Python that allow you to accomplish big things with surprisingly little code. In preparing this book the Python documentation atwww.python.orgwas indispensable. This book was composed entirely in LATEX.