05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 8-1. The movie page<br />

the database, and more. The components of a DSN are assembled into a URL-like<br />

string:<br />

type(dbsyntax)://username:password@protocol+hostspec/database<br />

The only mandatory field is type, which specifies the <strong>PHP</strong> database backend to use.<br />

Table 8-1 lists the implemented database types at the time of writing.<br />

Table 8-1. <strong>PHP</strong> database types<br />

Name Database<br />

Mysql MySQL<br />

Pgsql PostgreSQL<br />

Ibase InterBase<br />

Msql Mini SQL<br />

Mssql Microsoft SQL Server<br />

oci8 Oracle 7/8/8i<br />

Odbc ODBC<br />

Sybase SyBase<br />

Ifx Informix<br />

Fbsql FrontBase<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

PEAR DB Basics | 193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!