
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
-68% $17.75$17.75
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Good
$9.51$9.51
Ships from: Amazon Sold by: THE BOOK SLED -- Fastest shipping!

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Head First PHP & MySQL: A Brain-Friendly Guide 1st Edition
Purchase options and add-ons
Head First PHP & MySQL offers the same visually rich format that's turned every title in the Head First series into a bestseller, with plenty of exercises, quizzes, puzzles, and other interactive features to help you retain what you've learned.
- Use PHP to transform static HTML pages into dynamic web sites
- Create and populate your own MySQL database tables, and work with data stored in files
- Perform sophisticated MySQL queries with joins, and refine your results with LIMIT and ORDER BY
- Use cookies and sessions to track visitors' login information and personalize the site for users
- Protect your data from SQL injection attacks
- Use regular expressions to validate information on forms
- Dynamically display text based on session info and create images on the fly
- Pull syndicated data from other sites using PHP and XML
- ISBN-100596006306
- ISBN-13978-0596006303
- Edition1st
- PublisherO'Reilly Media
- Publication dateJanuary 27, 2009
- LanguageEnglish
- Dimensions8 x 1.8 x 9.25 inches
- Print length812 pages
Frequently bought together

Customers who viewed this item also viewed
From the brand

-
Explore the full series
-
Brain-Friendly Guides
-
Brain-Friendly Guides
-
Explore the full series
-
Learning isn't something that just happens to you. It's something you do. Learning means building more mental pathways, bridging connections between new and pre-existing knowledge, recognizing patterns, and turning facts and information into knowledge (and ultimately, wisdom).
Based on the latest research in cognitive science, neuro-biology, and educational psychology, Head First books get your brain into learning mode.
From the Publisher

About 'Head First' Books
We think of a Head First Reader as a Learner
Learning isn't something that just happens to you. It's something you do. You can't learn without pumping some neurons. Learning means building more mental pathways, bridging connections between new and pre-existing knowledge, recognizing patterns, and turning facts and information into knowledge (and ultimately, wisdom). Based on the latest research in cognitive science, neurobiology, and educational psychology, Head First books get your brain into learning mode.
Here's how we help you do that:
We tell stories using casual language, instead of lecturing. We don't take ourselves too seriously. Which would you pay more attention to: a stimulating dinner party companion, or a lecture?
We make it visual. Images are far more memorable than words alone, and make learning much more effective. They also make things more fun.
We use attention-grabbing tactics. Learning a new, tough, technical topic doesn't have to be boring. The graphics are often surprising, oversized, humorous, sarcastic, or edgy. The page layout is dynamic: no two pages are the same, and each one has a mix of text and images.
Metacognition: thinking about thinking
If you really want to learn, and you want to learn more quickly and more deeply, pay attention to how you pay attention. Think about how you think. The trick is to get your brain to see the new material you're learning as Really Important. Crucial to your well-being. Otherwise, you're in for a constant battle, with your brain doing its best to keep the new content from sticking.

Here's what we do:
We use pictures, because your brain is tuned for visuals, not text. As far as your brain's concerned, a picture really is worth a thousand words. And when text and pictures work together, we embedded the text in the pictures because your brain works more effectively when the text is within the thing the text refers to, as opposed to in a caption or buried in the text somewhere.
We use redundancy, saying the same thing in different ways and with different media types, and multiple senses, to increase the chance that the content gets coded into more than one area of your brain.
We use concepts and pictures in unexpected ways because your brain is tuned for novelty, and we use pictures and ideas with at least some emotional content, because your brain is more likely to remember when you feel something.
We use a personalized, conversational style, because your brain is tuned to pay more attention when it believes you're in a conversation than if it thinks you're passively listening to a presentation.
We include many activities, because your brain is tuned to learn and remember more when you do things than when you read about things. And we make the exercises challenging-yet-do-able, because that's what most people prefer.
We use multiple learning styles, because you might prefer step-by-step procedures, while someone else wants to understand the big picture first, and someone else just wants to see an example. But regardless of your own learning preference, everyone benefits from seeing the same content represented in multiple ways.
We include content for both sides of your brain, because the more of your brain you engage, the more likely you are to learn and remember, and the longer you can stay focused. Since working one side of the brain often means giving the other side a chance to rest, you can be more productive at learning for a longer period of time.
We include challenges by asking questions that don't always have a straight answer, because your brain is tuned to learn and remember when it has to work at something.
Finally, we use people in our stories, examples, and pictures, because, well, you're a person. Your brain pays more attention to people than to things.
Editorial Reviews
About the Author
Lynn loves traveling, cooking, and making up elaborate background stories about complete strangers. She's a little scared of clowns.
Michael Morrison is a writer, developer, toy inventor, and author of a variety of books covering topics such as Java, Web scripting, game development, and mobile devices. Some of Michael's notable writing projects include JavaScript Bible, 6th Edition (Wiley, 2006),Teach Yourself HTML and CSS in 24 Hours, 7th Edition (Sams Publishing, 2005), Beginning Mobile Phone Game Programming (Sams Publishing, 2004) and Java Unleashed (Sams Publishing, 1997). Michael is the intructor of several Web-based courses, including DigitalThink's Introduction to Java 2 series, JavaBeans for Programmers series, and Win32 Programming series (www.digitalthink.com).
In addition to his primary profession as a writer and technical consultant, Michael is the founder of Stalefish Labs (www.stalefishlabs.com), an entertainment company specializing in games, toys, and interactive media. When not glued to his computer, skateboarding, playing hockey, or watching movies with his wife, Masheed, Michael enjoys hanging out by his koi pond.
Product details
- Publisher : O'Reilly Media; 1st edition (January 27, 2009)
- Language : English
- Paperback : 812 pages
- ISBN-10 : 0596006306
- ISBN-13 : 978-0596006303
- Item Weight : 3.28 pounds
- Dimensions : 8 x 1.8 x 9.25 inches
- Best Sellers Rank: #710,160 in Books (See Top 100 in Books)
- #45 in MySQL Guides
- #195 in Object-Oriented Design
- #717 in Software Development (Books)
- Customer Reviews:
About the authors
Lynn Beighley is a fiction writer stuck in a technical book writer's body.
She spends most of her time writing tech books, or writing novels, or traveling.
Michael Morrison is a writer, developer, toy inventor, and author of a variety of software technology books and interactive web-based courses. In addition to his primary profession as a writer and freelance software developer, Michael is the founder and creative lead of Stalefish Labs, an interactive entertainment company. Stalefish Labs has produced the board game Inc. The Game of Business, the social/trivia card game Tall Tales: The Game of Legends and Creative One-Upmanship, and numerous mobile apps. Most recently, the mobile app Muster (http://www.muster.io) makes it considerably easier to plan social gatherings.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find this PHP & MySQL book to be a great learning resource, particularly as a self-paced tool for beginners, and appreciate how it helps understand basic concepts. The book receives positive feedback for its style and physical condition, and customers find it engaging and fun to read. However, customers disagree on how easy it is to follow the learning structure, and some report code errors in the examples. Additionally, the content quality receives mixed reviews, with one customer noting it's far out of date with current PHP.
AI-generated from the text of customer reviews
Customers find this book to be a great learning resource, particularly suitable for beginners and as a self-paced tool, with one customer noting its effectiveness in teaching PHP and MySQL basics.
"...Head First successfully attempts to deliver an extremely educational book while being fun and modernistic...." Read more
"This book can teach you dynamic web development using PHP and MySQL quickly...." Read more
"...Great reading: you just have to know how to skim through lower-level material and spot your target. Great book!" Read more
"...In all this was a helpful book. There are some errors in the book's code as well as the downloadable code online. Mostly with sticky forms...." Read more
Customers find the book engaging and interesting, with one mentioning it keeps them on their toes.
"...attempts to deliver an extremely educational book while being fun and modernistic...." Read more
"...But, that's the only problem. The book keeps you on your toes and noticed as you went along in the book they left stuff out of the instructions..." Read more
"...Still, the book was entertaining and kept me interested and coding in my first experience with the language...." Read more
"...The Head First series by O'Reilly is fantastic. It makes the content interesting and presents it in way that is simple, but not dumbed down...." Read more
Customers appreciate how the book helps them understand PHP and MySQL basics, with one customer noting it provides a good starting point for developing web-based applications.
"...It mixes PHP and SQL together teaching you the basics of what you need...." Read more
"While this pretty much goes over the basics of PHP and MySQL, a subject that I had broached more than 8 years ago, the shine on -this- particular..." Read more
"...The good news is that PHPMyAdmin has vastly improved, so you don't need to type in that code anymore -- but it makes you worry what other things wo..." Read more
"This book help me understand the basic of PHP and MySQL...." Read more
Customers appreciate the book's style, with one noting its modernistic approach and another describing it as a nice visual helpful guide.
"...to deliver an extremely educational book while being fun and modernistic...." Read more
"...Headcase PHP and MYsql is a nice visual helpful book. However it is more of another PC book with examples for a PC computer...." Read more
"Whimsical, informative, humorous...." Read more
"...right now and it's more in line with how I learn: organized, linear, neat, tidy. Head First is good, don't get me wrong...." Read more
Customers are satisfied with the book's sturdiness, noting it arrives in very good condition, with one customer mentioning its solid principles.
"...really corny, but once you get past that you can learn some pretty solid principles and easy exorcises that you can apply to a lot of web..." Read more
"This book was exactly what I ordered, excellent condition, and great delivery time!..." Read more
"Book was in very good condition.. Perfect as far as I was concerned...." Read more
"I love this book great for PHP and in great condition" Read more
Customers have mixed opinions about the book's clarity, with some finding the topics easy to understand and appreciating it as a friendly introduction to programming concepts using PHP, while others report difficulty following the learning structure.
"...For me, the most impressive thing about this book is it's attention to detail - on more than one occasion I've wondered why something was done in a..." Read more
"...For beginners I can't stress this enough how easy this book is and how well it explains everything...." Read more
"There are only a few things that are important and the popped out in this book right away: How to post a form with data and how to take the posted..." Read more
"...I gave this book four stars because there were problems with setting up the environment which could of been avoided if they gave more attention to..." Read more
Customers report multiple instances of code errors in the book.
"...In all this was a helpful book. There are some errors in the book's code as well as the downloadable code online. Mostly with sticky forms...." Read more
"...to the level of a beginner (which I wanted), but it has too many errors in the details for a beginner to actually follow along...." Read more
"...I found that the code for the examples had errors and I needed to use the accompanying web site to resolve the errors and get it working...." Read more
"...book (or its companion repository) doesn't work as expected and returns errors." Read more
Customers find the book's content outdated, with one customer noting it was published in 2008.
"...to programming concepts using PHP, however, the content seems to be outdated as some examples outright don't work...." Read more
"...I like other Head First books, but this one is too outdated (2008) to recommend...." Read more
"Although I generally like Head First books, this one is so far out of date with current PHP that I can't recommend it...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on March 25, 2013I've purchased around 6 or 7 books on PHP (for beginners) and each book has a common pattern where i get to a certain point and nothing else makes sense. I put down that book and pick up the next and re-learn what a variable is and learn about associative arrays, then they jump into checking if GET variables are set, but i don't even know what they are yet??
Head First PHP & MySQL pulls you into the pool fully dressed and forces you to get typing in a way that no other book even comes close to. It's easy to sit back and write a bad review that there's mistakes, parts that are difficult to learn etc - but if you review this book relative to what is out there - the others just can't compete. Head First successfully attempts to deliver an extremely educational book while being fun and modernistic. It is made up of several long, hands-on php/ mysql tutorials that do a great job of showing you how to apply top to bottom php coding. For me, the most impressive thing about this book is it's attention to detail - on more than one occasion I've wondered why something was done in a certain way and I turn the page to find that the detail has been answered! This is what I think helps the book to distinguish itself as the best 'how-to PHP' guide on the market.
I strongly recommend this if you would like to learn PHP, however I would also strongly suggest that you buy yourself a beginner's PHP book to accompany it, that isn't tutorial based, such as PHP for Absolute Beginners (Expert's Voice in Open Source).
I'm mid-way through Head First PHP and stopped doing the tutorials just so i could write this review. In fact i found a free version of this book somewhere online and liked it so much that i went ahead and bought it on amazon because i felt the value I received was well worth the money.. plus it's like having a little PHP bible next to me:) Strongly recommended:)
- Reviewed in the United States on October 8, 2010I'm a Web Design student, and I got this book for a database class I had to take a little while back. Unfortunately my instructors style of teaching didn't fit my style of learning (in other words I don't learn PHP from a 60 page powerpoint slideshow...). So a friend recommended me this book so that I can just teach it to myself. I gotta say I am very happy with it. For beginners I can't stress this enough how easy this book is and how well it explains everything. I mean the "humor" that the book tries to push is really corny, but once you get past that you can learn some pretty solid principles and easy exorcises that you can apply to a lot of web applications. It mixes PHP and SQL together teaching you the basics of what you need.
Now this book is not a standard textbook that covers every single component of PHP and SQL but more of learning through some basic exorcises. I personally don't like the soulless and dry text book style books that just present everything in the most boring way. This book tries to mix it up and be a little less serious which in my opinion makes it easier to take in. If you are looking to learn basic PHP/SQL applications then I would highly recommend this book. The more advanced programmer may not find it as helpful however.
- Reviewed in the United States on September 14, 2009This book can teach you dynamic web development using PHP and MySQL quickly. I bought this book because I needed to learn PHP quickly for a site I planned to build. I was able to write scripts quickly using this book. I gave this book four stars because there were problems with setting up the environment which could of been avoided if they gave more attention to the setup. For beginners that never setup a local test environment, this will be very frustrating. But, that's the only problem. The book keeps you on your toes and noticed as you went along in the book they left stuff out of the instructions because at that point in the book you should know what to do. So you get weened off the hand holding for simple tasks such as creating a database. So, this is a great learning book. Don't get scared off by the setup. I found if you google WAMP and download the WAMP server, it will set the environment up for you. They should mention that in the book. If you're purpose is to learn PHP and MySQL, this book is the one to get.
- Reviewed in the United States on December 10, 2023There are only a few things that are important and the popped out in this book right away: How to post a form with data and how to take the posted elements to the database. The book totally covered the necessities with a comical data-entry form.
Great reading: you just have to know how to skim through lower-level material and spot your target. Great book!
Top reviews from other countries
-
Christian SchachtReviewed in Germany on April 28, 2014
4.0 out of 5 stars Gutes Buch für den Einstieg aber Bilder auf dem Kindle sind nicht optimal
Ich habe jahrelange Erfahrung in der Softwareentwicklung speziell mit Java und möchte durch dieses Buch in die PHP Entwicklung einsteigen.
Die offene Struktur und die Einbindung vom Leser gefällt mir außerordentlich an den Head First Buchern.
Durch praktische Beispiele die Teilweise aufeinander aufbauen (jedoch nicht erforderlich erweise gelesen werden müssen) werden verschiedene Eigenschaften von PHP erklärt. Wenn man allerdings schon Erfahrung in der Softwareentwicklung hat fallen einige Problem schon vorab auf, die im späterem Verlauf des Buches dann zur Verbesserung der Beispiele bzw. Erklärung von anderen Eigenschaften von PHP genutzt werden.
Mir hat das Buch als Einstieg sehr geholfen es kann aber auf keinen Fall mit dem Detailgrad des PHP Manuals mithalten - Erklärt aber vieles einfacher und weniger steif.
Das Buch besteht aus sehr vielen Bildern bzw. Skizzen und Diagrammen, die auf dem Kindle schwer zu lesen sind. Die Zoofunktion war da hilfreich obwohl einige Bilder mit Text trotzdem schwer zu lesen sind.
- CarloReviewed in Italy on March 30, 2017
5.0 out of 5 stars Very good book about php, learning by doing
Very good book, i love it! Absolutely never boring because u learn by doing real projects more and more complicated. Very good!👍
- Andrew KReviewed in the United Kingdom on May 7, 2011
5.0 out of 5 stars The best PHP book for beginners!
Excellent for beginners. However it is not good for reference as it explains everything in terms of projects so if you want to loook up particular functions, chances are you will not be successful. You lear about arrays,, variables, sessions, cookies and so on, by doing excercises. There are brief explanations of these at the beginning but the methord the book uses is to teach you as you do.
This is the first book that enabled me to have a PHP scrpt that connects to a MySQL Database. I first used code from the book, then modified it to do other things and finally I could write my own code. For a beginner, I can't think of a better book than this one. You will be able to see the application growing. It has a large community of aspring programmers or O'reilly, so you can askl questions on the forums if you are stack.
It's a hilarious way of learning. You start with a problem then you solve it in stages and even the code is arranged that way. Along the way problems are introduced and solved. You get involved by typing code so you learn by doing. In this way you build up your knowledge adding concepts as you ascend. I can now create XML Feeds, after doing an excercise from this book.
After you know how to program, you will hate the book, and that may be the right time to pass it to your young sister or the local council library.
Conclusion: The best PHP book for beginners! It just can't be beat in that category, at least according to me!
- HarryReviewed in India on February 10, 2014
5.0 out of 5 stars Love It , Just Awesome ! Great ! Thank You !
I Read some head first books lately from pdf downloads and i felt it okkk to buy a paperback this time . And Honestly not only i am just satisfied , but feels like just the great publisher to write such books . Must say so easy language , just being sure of being taking these type of books for learning/starter purpose only and not as kind of a reference books !
And Yeah i am a Programmer too and have a little experience also and i am NOT A Beginner ! . Its not true that its only for beginner , so much fun !
Love It
- castro odhiamboReviewed in Canada on June 24, 2022
5.0 out of 5 stars I received what i ordered
Delivery was on time and the condition of the book is excellent.