Databases and PHP




CS174

Chris Pollett

Oct 12, 2020

Outline

Introduction

Basic SQL

Database, Table Creation Deletion

SQL Query

SQL Insert, Delete, Update

Quiz

Which of the following statements is true?

  1. Every key of the $_REQUEST super-global variable appears as a key in the $_POST super-global variable.
  2. Cookies are implemented in the browser using the HTTP Session header.
  3. In the MVA design pattern views in a web app are typically used to draw the HTML that a user sees.

PHP Database APIs

Connecting to a database from PHP

Selecting a Database and queries

Accessing More Advanced Features of Mysql