<p>Introduction</p> <p>Chapter 1 Getting Started with PHP</p> <p>Basic HTML Syntax</p> <p>Basic PHP Syntax</p> <p>Using SFTP</p> <p>Testing Your Script</p> <p>Sending Text to the Browser</p> <p>Using the PHP Manual</p> <p>Sending HTML to the Browser</p> <p>Adding Comments to Scripts</p> <p>Basic Debugging Steps</p> <p>Review and Pursue</p> <p>Chapter 2 Variables</p> <p>What Are Variables?</p> <p>Variable Syntax</p> <p>Types of Variables</p> <p>Variable Values</p> <p>Understanding Quotation Marks</p> <p>Review and Pursue</p> <p>Chapter 3 HTML Forms and PHP</p> <p>Creating a Simple Form</p> <p>Choosing a Form Method</p> <p>Receiving Form Data in PHP</p> <p>Displaying Errors</p> <p>Error Reporting</p> <p>Manually Sending Data to a Page</p> <p>Review and Pursue</p> <p>Chapter 4 Using Numbers</p> <p>Creating the Form</p> <p>Performing Arithmetic</p> <p>Formatting Numbers</p> <p>Understanding Precedence</p> <p>Incrementing and Decrementing a Number</p> <p>Review and Pursue</p> <p>Chapter 5 Using Strings</p> <p>Creating the HTML Form</p> <p>Concatenating Strings</p> <p>Handling Newlines</p> <p>HTML and PHP</p> <p>Encoding and Decoding Strings</p> <p>Finding Substrings</p> <p>Replacing Parts of a String</p> <p>Review and Pursue</p> <p>Chapter 6 Control Structures</p> <p>Creating the HTML Form</p> <p>The if Conditional</p> <p>Validation Functions</p> <p>Using else</p> <p>More Operators</p> <p>Using elseif</p> <p>The Switch Conditional</p> <p>The for Loop</p> <p>Review and Pursue</p> <p>Chapter 7 Using Arrays</p> <p>What Is an Array?</p> <p>Creating an Array</p> <p>Adding Items to an Array</p> <p>Accessing Array Elements</p> <p>Creating Multidimensional Arrays</p> <p>Sorting Arrays</p> <p>Transforming Between Strings and Arrays</p> <p>Creating an Array from a Form</p> <p>Review and Pursue</p> <p>Chapter 8 Creating Web Applications</p> <p>Creating Templates</p> <p>Using External Files</p> <p>Using Constants</p> <p>Working with the Date and Time</p> <p>Handling HTML Forms with PHP, Revisited</p> <p>Making Forms Sticky</p> <p>Sending Email</p> <p>Output Buffering</p> <p>Manipulating HTTP Headers</p> <p>Review and Pursue</p> <p>Chapter 9 Cookies and Sessions</p> <p>What Are Cookies?</p> <p>Creating Cookies</p> <p>Reading from Cookies</p> <p>Adding Parameters to a Cookie</p> <p>Deleting a Cookie</p> <p>What Are Sessions?</p> <p>Creating a Session</p> <p>Accessing Session Variables</p> <p>Deleting a Session</p> <p>Review and Pursue</p> <p>Chapter 10 Creating Functions</p> <p>Creating and Using Simple Functions</p> <p>Creating and Calling Functions That Take Arguments</p> <p>Setting Default Argument Values</p> <p>Creating and Using Functions That Return a Value</p> <p>Understanding Variable Scope</p> <p>Review and Pursue</p> <p>Chapter 11 Files and Directories</p> <p>File Permissions</p> <p>Writing to Files</p> <p>Locking Files</p> <p>Reading from Files</p> <p>Handling File Uploads</p> <p>Navigating Directories</p> <p>Creating Directories</p> <p>Reading Files Incrementally</p> <p>Review and Pursue</p> <p>Chapter 12 Intro to Databases</p> <p>Introduction to SQL</p> <p>Connecting to MySQL</p> <p>MySQL Error Handling</p> <p>Creating a Table</p> <p>Inserting Data into a Database</p> <p>Securing Query Data</p> <p>Retrieving Data from a Database</p> <p>Deleting Data in a Database</p> <p>Updating Data in a Database</p> <p>Review and Pursue</p> <p>Chapter 13 Putting It All Together</p> <p>Getting Started</p> <p>Connecting to the Database</p> <p>Writing the User-Defined Function</p> <p>Creating the Template</p> <p>Logging In</p> <p>Logging Out</p> <p>Adding Quotes</p> <p>Listing Quotes</p> <p>Editing Quotes</p> <p>Deleting Quotes</p> <p>Creating the Home Page</p> <p>Review and Pursue</p> <p>Appendix A Installation and Configuration</p> <p>Appendix B Resources and Next Steps</p> <p>Index</p>