Chapter 12. Pages That Think for Themselves
What we'll cover in this chapter
Making decisions
Formatting currencies with
printf()
andsprintf()
Hiding unwanted output
Controlling program flow
if
statementsswitch
statementsloops
Using loops to alternate table row colors
Storing related information in arrays
Using built-in PHP and user-defined functions
Saving PHP code for reuse
Sending form output by e-mail
If you're straining at the leash to get a database-driven site up and running, bear with us. We show you how Dreamweaver MX 2004, PHP, and MySQL all fit together in Chapter 13, but to make database-driven sites work really well, you need to know a little bit about the mechanics behind them. This knowledge will also enable you to build pages that respond ...
Get Foundation Macromedia Dreamweaver MX 2004 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.