Skip to Main Content
PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites
book

PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites

by Janet Valade
September 2006
Intermediate to advanced content levelIntermediate to advanced
319 pages
9h 24m
English
Visual
Content preview from PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites

Chapter 4. Controlling the Flow of the Script

Change the Order of Statement Execution

PHP scripts are a series of instructions in a file. PHP begins at the top of the file and executes each instruction in order. Sometimes you want your statements to execute in a different order, such as executing a statement only when certain conditions exist or executing a statement more than once. PHP provides several complex statements that change the order of execution in your script.

Conditional Statements

Conditional statements execute a block of statements only when certain conditions are met. The most common conditional statement is the if statement, which tests a condition and executes a block of code when the condition is true. An if statement can also ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Larry Ullman

Publisher Resources

ISBN: 9780470048399Purchase book