Book description
"The expertise, thought, and effort that go into each book are obvious, and I sincerely appreciate your efforts. Keep up the wonderful work!"
--Tracey Moore (Memphis, TN)
Welcome to the only guidebook series that takes a visual approach to professional-level computer topics. Open the book and you will discover step-by-step screen shots that demonstrate over 140 key techniques using PHP amd MySQL, including:
Configuring Apache to process PHP code
Working with character strings
Creating, sorting, and comparing arrays
Defining and using functions
Finding and replacing substrings
Querying databases and retrieving data
Stopping and starting the MySQL server
Adding dynamic check boxes
Sending new Web pages to a browser
Extra / Apply It
High-resolution screen shots demonstrate each task
Succinct explanations walk you through step-by-step
Two-page lessons break big topics into bite-sized modules
"Apply It" and "Extra" sidebars highlight useful tips
Table of contents
- Copyright
- Praise For Visual Books ...
- Credits
- About the Author
- Author's Acknowledgments
- HOW TO USE THIS BOOK
-
1. Setting Up Your Development Environment
- 1.1. Introducing Dynamic Web Sites
- 1.2. Set Up Your Development Environment
- 1.3. Obtain Apache
- 1.4. Install Apache
- 1.5. Obtain MySQL
- 1.6. Install MySQL
- 1.7. Configure MySQL
- 1.8. Install MySQL Administration Programs
- 1.9. Create MySQL Accounts for Use in PHP Scripts
- 1.10. Obtain PHP
- 1.11. Install PHP
- 1.12. Configure Apache to Process PHP Code
- 1.13. Configure PHP
- 1.14. Test Your Development Environment
-
2. Learning PHP Basics
- 2.1. How PHP Works
- 2.2. Add PHP Code to a Web Page File
- 2.3. Using PHP Statements
- 2.4. Understanding PHP Output Statements
- 2.5. Using PHP Variables
- 2.6. Using PHP Constants
- 2.7. Work with Numbers
- 2.8. Work with Character Strings
- 2.9. Work with Dates and Times
- 2.10. Modify or Remove Variables
- 2.11. Using Variable Variables
- 2.12. Understanding Error Messages
- 2.13. Add Comments to a Script
-
3. Using Arrays
- 3.1. Create an Array
- 3.2. Modify or Remove an Array
- 3.3. Get Information about an Array
- 3.4. Sort an Array
- 3.5. Walk through an Array with foreach
- 3.6. Walk through an Array Manually
- 3.7. Find Values in an Array
- 3.8. Compare Arrays
- 3.9. Split and Merge Arrays
- 3.10. Convert an Array into a String and Vice Versa
- 3.11. Store a Set of Variables in an Array
- 3.12. Store Array Elements in Separate Variables
- 3.13. Create a Multidimensional Array
- 3.14. Walk through a Multidimensional Array
- 3.15. Using Built-in PHP Arrays
-
4. Controlling the Flow of the Script
- 4.1. Change the Order of Statement Execution
- 4.2. Check the Contents of a Variable
- 4.3. Set up Conditions with Comparison Operators
- 4.4. Introducing Regular Expressions
- 4.5. Match Character Strings to Patterns Using Regular Expressions
- 4.6. Join Multiple Comparisons with Logical Operators
- 4.7. Using an if Statement
- 4.8. Using a switch Statement
- 4.9. Using a for Loop
- 4.10. Using a while Loop
- 4.11. Using a do-while Loop
- 4.12. Avoid an Infinite Loop
- 4.13. Break Out of a Loop
- 5. Reusing PHP Code
-
6. Some Useful PHP Built-In Functions
- 6.1. Format a Number
- 6.2. Round a Number
- 6.3. Find the Largest or Smallest Number
- 6.4. Remove Leading and Trailing Blank Spaces
- 6.5. Change the Case of a String
- 6.6. Format a String
- 6.7. Count the Characters or Substrings in a String
- 6.8. Locate a Substring in a String
- 6.9. Get a Substring
- 6.10. Find and Replace Substrings
- 6.11. Add a Substring to a String
- 6.12. Using Regular Expressions to Replace Text
- 6.13. Pad or Repeat a String
- 6.14. Convert a Character to and from an ASCII Value
- 6.15. Compare Strings
- 6.16. Convert a String into an Array
- 6.17. Send an Email Message
- 6.18. Send an HTTP Header
- 6.19. Read Configuration Settings
- 6.20. Set a Local PHP Configuration Option
-
7. Using MySQL Databases
- 7.1. How a MySQL Database Works
- 7.2. Send a Query with the mysql Client
- 7.3. Send a Query with the MySQL Query Browser
- 7.4. Create, Select, or Remove a MySQL Database
- 7.5. Define a MySQL Table
- 7.6. Create and Remove a MySQL Table
- 7.7. Modify the MySQL Table Structure
- 7.8. Add a Row of Data to a Database
- 7.9. Add Data from a Text File to a Database
- 7.10. Store Incremental Values in a Column
- 7.11. Retrieve Data from a Database
- 7.12. Limit Query Execution to Specific Rows with a WHERE Clause
- 7.13. Retrieve Data from Multiple Tables with UNION
- 7.14. Retrieve Data from Multiple Tables by Joining Tables
- 7.15. Update Data in a Database
- 7.16. Remove Data from a Database
- 7.17. Query a MySQL Database from a PHP Script
- 7.18. Display Database Data on a Web Page in a PHP Script
- 7.19. Handle MySQL Errors
-
8. Administering MySQL Databases
- 8.1. Understanding MySQL Accounts
- 8.2. View Existing Accounts
- 8.3. Create a MySQL Account
- 8.4. Change the Password of a MySQL Account
- 8.5. Add and Remove Privileges
- 8.6. Change the Name of a MySQL Account
- 8.7. Remove a MySQL Account
- 8.8. Stop and Start the MySQL Server
- 8.9. Using MySQL Logs
- 8.10. Back Up Data
- 8.11. Restore Data
- 8.12. Upgrade MySQL
-
9. Adding HTML forms to a Web Page
- 9.1. Display an HTML Form
- 9.2. Add a Text Field
- 9.3. Add a Multiline Text Area
- 9.4. Add a Hidden Field
- 9.5. Add a Dynamic Selection List to a Form
- 9.6. Add a Date Selection List
- 9.7. Add Dynamic Radio Buttons
- 9.8. Add Dynamic Check Boxes
- 9.9. Create One or More Submit Buttons
- 9.10. Choose the POST or GET Method for a Form
- 9.11. Create a Form That Uploads a File
-
10. Processing Data from Forms
- 10.1. Process Information from a Form
- 10.2. Display Data from a Form
- 10.3. Display and Process a Form in One Script
- 10.4. Check for Blank Fields
- 10.5. Verify Form Data
- 10.6. Clean Form Data
- 10.7. Add Form Data to a Database
- 10.8. Insert Form Data into a Database
- 10.9. Update or Remove Database Data
- 10.10. Process an Uploaded File
- 11. Managing User Sessions
-
12. Object-Oriented Programming in PHP
- 12.1. Understanding Object-Oriented Programming
- 12.2. Create and Use an Object
- 12.3. Set Properties in a Class
- 12.4. Add Methods to a Class
- 12.5. Write a Constructor or a Destructor Method
- 12.6. Using PHP Magic Methods to Get or Set Properties
- 12.7. Using Inheritance in a Class
- 12.8. Using Exceptions
- 12.9. Copy and Compare Objects
- 12.10. Get Information about Objects and Classes
- 12.11. Using Abstract Classes
- 12.12. Using Interfaces
- A. Programming Editors and IDEs for PHP
- B. Troubleshooting Tips
Product information
- Title: PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites
- Author(s):
- Release date: September 2006
- Publisher(s): Visual
- ISBN: 9780470048399
You might also like
book
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
When static HTML pages no longer cut it, you need to step up to dynamic, database-driven …
book
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, Fourth Edition
It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven …
book
PHP and MySQL™ Phrasebook
gives you the code you need to complete your web programming projects quickly and effectively in …
book
PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition
It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven …