13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

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

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

xx<br />

Contents<br />

Using Indexes 305<br />

Using Default Values 305<br />

Other Tips 305<br />

Backing Up Your <strong>MySQL</strong> Database 305<br />

Restoring Your <strong>MySQL</strong> Database 306<br />

Implementing Replication 306<br />

Setting Up the Master 307<br />

Performing the Initial Data Transfer 307<br />

Setting Up the Slave or Slaves 308<br />

Further Reading 309<br />

Next 309<br />

13 Advanced <strong>MySQL</strong> Programming 311<br />

The LOAD DATA INFILE Statement 311<br />

Storage Engines 312<br />

Transactions 313<br />

Underst<strong>and</strong>ing Transaction Definitions 313<br />

Using Transactions with InnoDB 314<br />

Foreign Keys 315<br />

Stored Procedures 316<br />

Basic Example 316<br />

Local Variables 319<br />

Cursors <strong>and</strong> Control Structures 319<br />

Further Reading 323<br />

Next 323<br />

III E-commerce <strong>and</strong> Security<br />

14 Running an E-commerce Site 327<br />

Deciding What You Want to Achieve 327<br />

Considering the Types of Commercial <strong>Web</strong>sites 327<br />

Publishing Information Using Online<br />

Brochures 328<br />

Taking Orders for Goods or Services 331

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

Saved successfully!

Ooh no, something went wrong!