/examples/ddl_dml.php

Description

Example shows how to do:

  • CREATE TABLE
  • INSERT
  • SELECT
  • UPDATE
  • DROP TABLE
Please note that this example requires a valid login to your own database which allows to create/drop tables and INSERT/UPDATE data! The example won't run until you setup a valid login for your database!

Includes
require ('functions.inc.php') (line 24)
Constants
DB_HOST = '' (line 44)

Database hostname (can be empty, localhost is then assumed)

DB_NAME = 'siegel' (line 50)

Database schema name

DB_PASS = 'siegel' (line 41)

Database user password

DB_PORT = 3306 (line 47)

Database TCP port number to use, defaults to 3306

DB_USER = 'siegel' (line 38)

Database user name

Documentation generated on Sat, 07 Aug 2010 10:18:06 +0200 by phpDocumentor 1.4.3