PHP: Cookies, Sessions, Databases




CS174

Chris Pollett

Sep 27, 2010

Outline

Cookies

Cookies in PHP

Quiz

Which of the following statements is true?

  1. In PHP, %my_hash could be the name of an associative array.
  2. The $_REQUEST superglobal contains information about forms variables posted to the given script.
  3. In the PHP snippet:
    function my_fun($foo) { /* some code*/}
    
    $foo is passed by reference.

Sessions

Database Management Systems and Databases

MySQL Databases

MySQL Command Line

MySQL Command Line

Basic SQL

Database, Table Creation Deletion

SQL Query

SQL Insert, Delete, Update

Connecting to MySQL from PHP

Selecting a Database and queries