Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites

Front Cover
"O'Reilly Media, Inc.", Jul 3, 2009 - Computers - 528 pages
22 Reviews

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
  

What people are saying - Write a review

User ratings

5 stars
7
4 stars
5
3 stars
6
2 stars
3
1 star
1

Review: Learning PHP, MySQL, and JavaScript

User Review  - Joshua Mooney - Goodreads

An excellent introduction to the basics of web design that teaches all the necessary components for designing very a simple, functional website. Highly recommended to those eager to learn about web design, but unsure of where to start. Read full review

Review: Learning PHP, MySQL, and JavaScript

User Review  - Charlie Hebert - Goodreads

Although the book offers a decent introduction to some of the technologies outlined in its title and how they work together, I would not recommend this to someone wishing to start web development in ... Read full review

Contents

Chapter†1†Introduction to Dynamic Web Content
1
Chapter†2†Setting Up a Development Server
13
Chapter†3†Introduction to PHP
33
Chapter†4†Expressions and Control Flow in PHP
61
Chapter†5†PHP Functions and Objects
89
Chapter†6†PHP Arrays
115
Chapter†7†Practical PHP
129
Chapter†8†Introduction to MySQL
157
Chapter†15†Expressions and Control Flow in JavaScript
319
Chapter†16†JavaScript Functions Objects and Arrays
337
Chapter†17†JavaScript and PHP Validation and Error Handling
355
Chapter†18†Using Ajax
377
Chapter†19†Using YUI for Ajax and More
393
Chapter†20†Bringing It All Together
405
Appendix†A†Solutions to the Chapter Questions
435
Appendix†B†Online Resources
453

Chapter†9†Mastering MySQL
201
Chapter†10†Accessing MySQL Using PHP
225
Chapter†11†Form Handling
251
Chapter†12†Templating with Smarty
269
Chapter†13†Cookies Sessions and Authentication
279
Chapter†14†Exploring JavaScript
299
Appendix†C†MySQLs FULLTEXT Stopwords
457
Appendix†D†MySQL Functions
461
Appendix†E†Using PEAR and PHPUnit
473
Index
485
Copyright

Common terms and phrases

About the author (2009)

Robin Nixon has worked with and written about computers since the early 1980s (his first computer was a Tandy TRS 80 Model 1 with a massive 4KB of RAM!). During this time he has written in excess of 500 articles for many of the UK's top computer magazines. Learning PHP, MySQL & JavaScript is his third book. Robin started his computing career in the Cheshire homes for disabled people, where he was responsible for setting up computer rooms in a number of residential homes, and for evaluating and tailoring hardware and software so that disabled people could use the new technology--sometimes by means of only a single switch operated by mouth or finger.After writing articles for computer magazines about his work with disabled people, he eventually worked full time for one of the country's main IT magazine publishers, where he held several roles including editorial, promotions, and cover disc editing.With the dawn of the Internet in the 1990s, Robin branched out into developing websites. One of these presented the world's first radio station licensed by the music copyright holders, and was featured in several news reports on TV and radio networks in the United Kingdom. In order to enable people to continue to surf while listening, Robin also developed the first known pop-up windows.Robin lives on the southeast coast of England with his wife Julie, a trained nurse, and five children, where he also finds time to foster three disabled children, as well as working full time from home as a technical author.

Bibliographic information