PHP and MySQL by Example and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$18.84 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
Sell Back Your Copy
For a $5.25 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
PHP and MySQL by Example
 
 
Start reading PHP and MySQL by Example on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

PHP and MySQL by Example [Paperback]

Ellie Quigley (Author), Marko Gargenta (Author)
2.6 out of 5 stars  See all reviews (12 customer reviews)

List Price: $54.99
Price: $30.84 & this item ships for FREE with Super Saver Shipping. Details
You Save: $24.15 (44%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $17.69  
Paperback $30.84  
Unknown Binding --  
Sell Back Your Copy for $5.25
Whether you buy it used on Amazon for $18.84 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $5.25.
Used Price$18.84
Trade-in Price$5.25
Price after
Trade-in
$13.59

Book Description

0131875086 978-0131875081 December 2, 2006

Quickly master dynamic, database-driven Web development—no experience necessary!

Even if you’re completely new to PHP, MySQL, and Web database development, this book will guide you through every step of building powerful, database-driven, dynamic Web sites. Direct from the world’s top scripting instructor, Ellie Quigley, PHP and MySQL by Example illuminates every concept with tested code examples, screen shots showing program output, and clear, line-by-line explanations.

Classroom-tested in Ellie Quigley’s Silicon Valley training courses and at Marko Gargenta’s Marakana training company in San Francisco, this book takes you from the simplest PHP scripting and SQL querying techniques all the way to dynamic, database driven Web site construction with PHP and MySQL. From simple fill-in forms to program security and debugging, it’s the only PHP/MySQL book you’ll ever need!

This book covers

  • Complete PHP fundamentals, including operators, strings, conditionals, loops, arrays, functions, and more
  • PHP QuickStart for more advanced readers—makes you productive with PHP in the space of just fifteen book pages
  • Essential Web development techniques, from file handling to validating user input with regular expressions
  • Powerful PHP features, including user-defined functions and self-processing PHP Forms
  • Day-to-day MySQL administration
  • A complete SQL tutorial for creating queries, retrieving data, and writing data with MySQL
  • Session management and cookies
  • Object Oriented PHP
  • Best practices for using PHP and MySQL together

Nearly 100,000 professionals and power users have relied on Ellie Quigley’s books to master scripting languages. With PHP and MySQL by Example, you can, too. And once you’ve become an expert, you’ll turn to this book constantly as your go-to source for reliable answers, solutions, and code.

About the CD-ROM

The CD-ROM contains versions of PHP and MySQL for Windows and UNIX/Linux, plus a comprehensive code library for creating your own sites and database-enabled Web applications, including this book’s powerful Art Gallery case study application.

Lab Solutions

Solutions to the end-of-chapter labs are available at www.prenhallprofessional.com/title/0131875086.


Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Customers buy this book with Sams Teach Yourself PHP and MySQL: Video Learning Starter Kit $28.93

PHP and MySQL by Example + Sams Teach Yourself PHP and MySQL: Video Learning Starter Kit


Editorial Reviews

About the Author

Ellie Quigley has taught scripting languages in Silicon Valley for more than twenty years. Her Perl and shell programming classes at the University of Santa Cruz Extension program have become part of Silicon Valley lore. Her best-selling books include UNIX® Shells by Example, Fourth Edition; Perl by Example, Third Edition; and Javascript by Example, all from Prentice Hall.


Marko Gargenta has worked as an e-commerce consultant and instructor since 1996. He has created the Marakana Ecommerce Seminar Series, consulted with Sun Microsystems Educational Services, and designed and delivered PHP and MySQL courses for OpNet Community Ventures and AcademyX. For more on Marko’s training company go to http://marakana.com.

Excerpt. © Reprinted by permission. All rights reserved.

Over the past few years, students taking my Perl/CGI course continued to ask me when I would be graduating from CGI to PHP, and whether I would offer a course or write a PHP “by Example” book. I didn’t really take the idea of a book seriously until attending a PHP/MySQL class here in San Francisco a few years ago, where I met Marko Gargenta, who was the teacher of that class and the inspiration for this book. We had lunch together and I mentioned to him that the girl sitting next to me in the class was a Web designer, with little programming experience. She was concerned that she couldn’t keep up with the class and wondered if I knew where she could find a book that explained PHP for designers, not just programmers. Marko had heard similar concerns from his students. We talked about how to address this issue, and from that conversation, the seeds were sown for PHP and MySQL by Example.

Although, theoretically, the Web designer/developer should need no PHP programming experience to change the content of a page, and the programmer should be concerned only with the logic, such as calculations, sending data to a database, and so on, they do not always work in isolation. For example, suppose a page is designed so that when the user enters bank information in an HTML form, a PHP program, after doing some calculations, finds that there are insufficient funds, and sends back an error in a bold red font. In such a case, PHP and HTML are integrated—one to calculate and produce the error message, the other to display it in a bold red font. Keeping the design and program logic separated may be the goal, but it is often impossible with the complexities of today’s Web development.

And then there is the issue of the database management system. Where does the processed data get stored? Who designs the database and its tables? Who administers it? How does the information get from the Web page, to the PHP program, and then to the database? Enter MySQL. Is this yet another world in isolation?

Since my first meeting with Marko, I was challenged to bring these technologies together. When Prentice Hall agreed to publish our book, the learning curve was steep, and after the initial draft was done, I began teaching “An Introduction to PHP and MySQL Programming” from the PDF version of that first draft. I noticed that more Web designers were signing up than programmers, and they came in with trepidation that it would be way over their heads. But with the real-world examples and labs we provided, they started to enjoy feelings of success on the first morning. It was wonderful to witness both designers and programmers sharing their experiences without the artificial boundary that has kept them isolated from each other in the workplace.

The mission of PHP and MySQL by Example is to create a gentle yet thorough introduction to the shared power of PHP and MySQL, to make static HTML pages dynamic. The labs and exercises have been tested by myself, Marko, and our students. I think you will find this “by Example” book a helpful and complete guide, no matter what side of the Web site you support, or even if you are just starting your own.

Acknowledgments

Many people helped with the creation of this book. I’d like to thank Mark L. Taub, my longtime editor at Prentice Hall; Vanessa Moore, the most gifted compositor on the planet; and Julie Nahil, a great production editor. Matthew Leingang, Sander van Zoest, David Mercer, and Jason Wertz provided extremely helpful manuscript reviews. Any remaining mistakes are my own.

I’d also like to thank the students in my classes who provided valuable input for the labs. These include Rita McCue, Sanjay Shahri, Ryan Belcher, Debra Anderson, and Catherine Nguyen.

The fantastic illustrations in the book were created by Elizabeth Staechelin and Daniel Staechelin. And many thanks to the artists who provided artwork for the art gallery example. They are Elliott Easterling, Laura Blair, Stuart Sheldon, and Todd Brown.

Errata and solutions to the labs can be found on the book’s Web site at www.prenhallprofessional.com/title/0131875086. The Northwind database script, used in the chapters, can be found at http://marakana.com/download/sql/northwind.sql.

Ellie Quigley
San Francisco, California
September 2006

Product Details

  • Paperback: 912 pages
  • Publisher: Prentice Hall (December 2, 2006)
  • Language: English
  • ISBN-10: 0131875086
  • ISBN-13: 978-0131875081
  • Product Dimensions: 7.1 x 1.1 x 9.2 inches
  • Shipping Weight: 2.8 pounds (View shipping rates and policies)
  • Average Customer Review: 2.6 out of 5 stars  See all reviews (12 customer reviews)
  • Amazon Best Sellers Rank: #441,034 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

12 Reviews
5 star:
 (3)
4 star:
 (1)
3 star:    (0)
2 star:
 (4)
1 star:
 (4)
 
 
 
 
 
Average Customer Review
2.6 out of 5 stars (12 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

4 of 4 people found the following review helpful:
1.0 out of 5 stars Too many errors!, May 7, 2008
This review is from: PHP and MySQL by Example (Paperback)
The book and cd code are error prone. The co-author writes a five star review trying to come off as an instructor in a php boot camp. Come on!! This book should not even have been published in this state.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 12 people found the following review helpful:
4.0 out of 5 stars should give more discussion on PHP AND MySQL, December 7, 2006
This review is from: PHP and MySQL by Example (Paperback)
Quigley's book acknowledges a major usage of PHP. To write some kind of front end user interface program that hooks to a back end MySQL database. Both are free and open source, and the combination has proved popular. Especially where the front end involves making an HTML web page with embedded PHP commands.

Not every example involves both PHP and MySQL. Though all examples have PHP. Many demonstrate how to use PHP inside an HTML file. Like writing user-defined functions, or nesting functions. Or making or using function libraries. The functions are a key idea in PHP, that take you beyond the elementary syntax. Functions also let you gainfully use code by other PHP programmers. Important if you are part of a coding group that has to divide up the programming effort in some manner.

Actually, the book has a serious drawback. Despite the use of MySQL in the title, it is only relatively late in the book that you encounter MySQL. Chapters 13 and 14 give a quick guide to MySQL, as a standalone entity. Out of 17 chapters, it is only Chapters 15-17 that involve both PHP and MySQL. Perhaps the book should have a more extended discussion. To this ends, maybe some of the earlier chapters could have been shortened or dropped. Because the reader is getting a book mostly on pure PHP. I suggest that given the very title, it is a reasonable expectation of most readers that the book will devote most of its attention to both subjects. Especially when there is "and" in the title. Readers are programmers, and the "and" has a very precise meaning to them.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
2.0 out of 5 stars This book was not reviewed before printing, January 28, 2008
This review is from: PHP and MySQL by Example (Paperback)
This book contains many, many, many errors. The book itself gives the URL for the publisher's website, claiming the errata is posted there. It isn't. Shame on the reviewers and on the editor for allowing this to go to print with so many mistakes.

On a positive note, finding and correcting the errors has helped me learn the material more thoroughly, and I'm finding there are some other great books out there on PHP and MySQL.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews










Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(6)
(2)
(1)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject