Book description
If you know HTML, this guide will have you building interactive websites quickly. You'll learn how to create responsive, data-driven websites with PHP, MySQL, and JavaScript, regardless of whether you already know how to program. Discover how the powerful combination of PHP and MySQL provides an easy way to build modern websites complete with dynamic data and user interaction. You'll also learn how to add JavaScript to create rich Internet applications and websites.
Learning PHP, MySQL, and JavaScript explains each technology separately, shows you how to combine them, and introduces valuable web programming concepts, including objects, XHTML, cookies, and session management. You'll practice what you've learned with review questions in each chapter, and find a sample social networking platform built with the elements introduced in this book.
This book will help you:
- Understand PHP essentials and the basics of object-oriented programming
- Master MySQL, from database structure to complex queries
- Create web pages with PHP and MySQL by integrating forms and other HTML features
- Learn about JavaScript, from functions and event handling to accessing the Document Object Model
- Use libraries and packages, including the Smarty web template system, PEAR program repository, and the Yahoo! User Interface Library
- Make Ajax calls and turn your website into a highly dynamic environment
- Upload and manipulate files and images, validate user input, and secure your applications
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. Introduction to Dynamic Web Content
- 2. Setting Up a Development Server
-
3. Introduction to PHP
- Incorporating PHP Within HTML
- This Book’s Examples
- The Structure of PHP
- Test Your Knowledge: Questions
- 4. Expressions and Control Flow in PHP
- 5. PHP Functions and Objects
- 6. PHP Arrays
- 7. Practical PHP
-
8. Introduction to MySQL
- MySQL Basics
- Summary of Database Terms
-
Accessing MySQL via the Command Line
- Starting the Command-Line Interface
- Using the Command-Line Interface
- MySQL Commands
-
Data Types
- The CHAR data type
- The BINARY data type
- The TEXT and VARCHAR data types
- The BLOB data type
- Numeric data types
- DATE and TIME
- The AUTO_INCREMENT data type
- Adding data to a table
- Renaming a table
- Changing the data type of a column
- Adding a new column
- Renaming a column
- Removing a column
- Deleting a table
- Indexes
- MySQL Functions
- Accessing MySQL via phpMyAdmin
- Test Your Knowledge: Questions
- 9. Mastering MySQL
- 10. Accessing MySQL Using PHP
- 11. Form Handling
- 12. Templating with Smarty
- 13. Cookies, Sessions, and Authentication
- 14. Exploring JavaScript
- 15. Expressions and Control Flow in JavaScript
- 16. JavaScript Functions, Objects, and Arrays
- 17. JavaScript and PHP Validation and Error Handling
- 18. Using Ajax
- 19. Using YUI for Ajax and More
- 20. Bringing It All Together
-
A. Solutions to the Chapter Questions
- Chapter 1 Answers
- Chapter 2 Answers
- Chapter 3 Answers
- Chapter 4 Answers
- Chapter 5 Answers
- Chapter 6 Answers
- Chapter 7 Answers
- Chapter 8 Answers
- Chapter 9 Answers
- Chapter 10 Answers
- Chapter 11 Answers
- Chapter 12 Answers
- Chapter 13 Answers
- Chapter 14 Answers
- Chapter 15 Answers
- Chapter 16 Answers
- Chapter 17 Answers
- Chapter 18 Answers
- Chapter 19 Answers
- B. Online Resources
- C. MySQL’s FULLTEXT Stopwords
- D. MySQL Functions
- E. Using PEAR and PHPUnit
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Learning PHP, MySQL, and JavaScript
- Author(s):
- Release date: July 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596157135
You might also like
book
PHP in a Nutshell
Now installed on more than 20 million Internet domains around the world, PHP is an undisputed …
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
book
API Testing and Development with Postman
Explore the world of APIs and learn how to integrate them with production-ready applications using Postman …
book
Responsive Web Design Toolkit
Responsive Web Design Toolkit: Hammering Websites into Shape focuses on the nuts and bolts of responsive …