CARVIEW |
By Michele E. Davis, Jon A. Phillips
August 2007
Pages: 428
ISBN 10: 0-596-51401-8 |
ISBN 13: 9780596514013
(Average of 10 Customer Reviews)
PHP and MySQL are quickly becoming the de facto standard for rapid development of dynamic, database-driven web sites. With concepts explained in plain English, the new edition starts with the basics of the PHP language, and explains how to work with MySQL, the popular open source database. You then learn how to put the two together to generate dynamic content.
Full Description
If you come from a web design or graphics design background and know your way around HTML, Learning PHP & MySQL is the book you've been looking for. The content includes:
- PHP basics such as strings and arrays, and pattern matching
- A detailed discussion of the variances in different PHP versions
- MySQL data fundamentals like tables and statements
- Information on SQL data access for language
- A new chapter on XHTML
- Error handling, security, HTTP authentication, and more
Featured customer reviews
Oreilly usually does great, but these authors completely blew it!!!, October 21 2008





I realize it's an introductory book, but the authors wrote the book as if it were for 3rd graders, repeating passages and phrases over and over and over! Were they just trying to meet the page requirements or something? And this is the 2nd Edition!!!!!!!!!
I have some Suse, RHEL, HPUX, Ubuntu and FedoraCore9 Linux experience, Apache HTTP experience, Java programming experience, C++, etc, etc, Microsoft SQL Server, Oracle, and Informix skills.
Don't buy this book if you really want to learn PHP and MySQL, especially if you don't have much programming experience. I've wasted approximately 52 hours total (so far) on errors and serious technical flaws throughout the book. Just like some of the other reviewers have said, the installation procedures were completely messed up. Obviously I didn't need to go through all the steps for Linux, but I also tried hosting on my Windows XP laptop.
The figures that supposedly help to clarify the coding explanations are completely asinine (inanely foolish).
To quote the book on page 16, "Many Linux distributions install Apache, PHP, and MySQL by default, so you may not even need to install them. If this looks too daunting, try XAMPP." What? Everything is already installed and working on my Fedora box! How could that be "daunting" and why whould I want to try "XAMPP"?
Anyway, I don't want to waste anymore of my time. I have about 15 other O'Reilly titles, and those were excellent or good. I think O'Reilly somehow got conned into letting these authors write this book. "DON'T BUY THIS BOOK!"
Learning PHP & MySQL (2nd Edition), August 28 2008





I'm sure the instructional material is wonderful but I wouldn't have any idea since the MySQL configuration instructions simply don't work.
Like some of the previous posts, I too have spent a lot of time trying to figure out how to get set up let alone actually learn anything.
The authors might as well have said,
1) install apache
2) install php
3) install mysql - then google hack until something works because it will be much faster than trying to find some help on our website.
In fact, I've tried twice to post to the forums looking for help and when I pressed the submit button it closed my online session! Now that's quality sheesh! If only I had read the reviews first.
I am so let down, while I was in the book store it seemed so promising and as I have read ahead it seemed fairly straight forward but noooooo it had to go and lay an egg right from the start!
So now I'm out $30 bucks and starting to think the 100% satisfaction link just a continued waste of my time.
Steve M
I think it is not so bad...., August 27 2008





I think its necessary to write a review in retrospect to the last comment posted about this book. Yes, this is true that when working with Xampp or MAMP there may be some issues. However every system is different, and it is not possible to list a setup for every system, or the book would cost way more then 30 dollars. There are port issues with MAMP, and sometimes XAMPP and this has to do with the default ports different for windows and mac, you can look them up on the web and will also find hundreds of solutions. The book in itself I think is more about php then setting up a server. It's nice though that it was included, however I personally did not require it myself. If your a reader looking to read about how to setup xammp or mamp, or any of the other many server programs out there, perhaps you should look for a book called learning XAMPP or MAMP or debian, anyways. Good book, simple to read, the examples are easy to follow, and not too complicated. THank you
PS. excuse any errors, I lack in time.
Errors in first 23 pages cost me a whole day, August 22 2008





This review may be premature, as I am still struggling through Chapter 2 on installation.
Thanks, O'Reilly, for blowing nearly a whole day of my time because of errors and omissions in the book. I've been struggling with getting mySQL to work with PHP (after all, that's what the whole book is about!!!) only to discover the erratum on page 23.
Seriously, O'Reilly? The whole book is devoted to PHP and mySQL and you couldn't even get that right in the installation section? I have absolutely no confidence in this book now, given the gravity of that error, plus the other obvious errors I've seen so far. How can I trust any instructions I'm being given? I wonder how much more of my time you're hoping to throw away making me chase answers to problems that only exist because of errors in your book?
This is pathetic considering the book cost $30 USD.
Because of this single error I'm a day behind now. Some errors are trivial enough to be excusable. Failing to include steps in the installation instructions necessary to move forward with the very subject of the book is inexcusable.
Hey editors - how about actually proofing a book before you release it? Your obviously slack attitude has real consequences for your customers.
I also find it shameful that the author pretends that the errors in the book are OK or trivial. Failing to actually describe steps is not the same as a typographical error. But maybe she thinks I should have assumed I was supposed to do something that I was explicitly instructed NOT to do, in the same way we're supposed to assume "slash" means "backslash."
Do not buy this book. O'Reilly has not earned your money on this one.
Absolutely satisfied, August 08 2008





This book was everything I hoped it would be and more. Being an almost complete novice at programming, I bought this book in order to learn enough to devellop a web-based POS and stock control application. I followed the book as a course, (admitedly skipping a few parts, such as object-oriented programming, and PEAR). Now I'm writing my code quite happily, and parts of my application are already in use, being a significant improvement on what we had previously.
I did find a few typos, but nothing to write home about, certainly nothing that was difficult to spot quite quickly. I would say the authors must have tested their code pretty thoroughly before publishing.
The part I found wanting really were the instructions for installing Apache/Php/MySQL. In the end I had to uninstall everything, and start again using instructions on this page:
https://www.php-mysql-tutorial.com/
One has to update for all paths and filenames, as these are out of date. Then, as this page is for php 4.3, I used the instructions in L P&M; for downloading and installing the MySQL extensions.
As a conclusion, I would like to sincerely thank the authors for the work they put into this book. Those were 29.99 very well spent US dollars!
Mistakes make the book frustrating at best, July 22 2008





I bought this book because I have had good luck with O'Reilly books in the past. This book was full of errors. The most frustrating and time consuming were in the code examples. I just spent an inordinate amount of time trying to figure out what was wrong with my installation of PEAR, until I ran across some code on another web site that pointed out the line on page 193 should have included "UNIX +" after@ and before $db_host. How I would have figured this out on my own is beyond me, especially since I am not running UNIX. The author reviews her own book saying -
"As the co-author of this book I'd like to say the following:
* Yes there are some typographical errors"
She goes on to say that they are addressed in the errata, wouldn't it have been more circumspect to have found and corrected the typos BEFORE the book went to print. Perhaps even worked through the code examples to prevent the numerous mistakes. As an instructor of computer science at a collegiate level I would HIGHLY recommend finding another book to use to learn PHP.
Great Book!, July 09 2008





LOVE this book! So thorough that not a single detail is overlooked, yet so well written that even a beginner can follow along with ease. This book will give anyone the confidence to delve into what can seem to be the very daunting realm of web development. Equally important, the authors have actually made it an enjoyable experience rather than one of further confusion and frustration.
I had many Ah-Ha moments while charging my way though this book. My many thanks to the authors and O'Reilly for producing such a wonderful guide. A whole new world has been opened up for me. This is now my handbook.
Very strongly recommended to all!

Submitted by Michele E. Davis [Respond | View]
I'd Call It Very Good!
As the co-author of this book I'd like to say the following:
* Yes there are some typographical errors
* The example that illustrates the correct slash, the premise was that the reader would know we meant backslash since the example showed one
* The illustrations are one of the best parts of the book. They are attractive, easy-to-understand, well-rendered, and, lastly, relevant. We did not willy-nilly throw them in, we gave a lot of thought, time, energy and discussion into deciding what should be an illustration and what shouldn't. Keep in mind, as you stated yourself, this is a book for someone who doesn't know these concepts
* We must have missed the memo that said it was necessary to be stand-up comedians to write tech books. Puns are considered bad English. The book had a chatty feel to it, but clever little puns isn't our style.
We're sorry you don't like our style. Your complaints about typo's are dead-on and are being addressed in errata.
Re: Second Edition? Huh?, March 26 2008





I was shocked at the overall low quality of this book considering O'Reillys Perl books were so good. Let me give examples:
On page 249 the author gives an example of how to make the system call "df" in linux and then print the results on a html page. In the 9 lines short example he makes two errors. First he starts the <pre> tag with "</pre>" instead of "<pre>". Ok, that can be obvious for some readers and they can quicly correct it. But then he writes this in the same example:
exec(escapeshellcmd(“df”),$output_lines,$return_value);
echo “$o”;
}
WTF? Considering the very point of his example is to show how to output the contents of a file, his error is not obvious. In one place he calls the variable $output_lines and in the other place he calls it $o. That is not simply a typo.
On page 51 he calls the character "\" backslash, which is correct. On page 52 he suddenly starts calling the character "slash" instead of "backslash". He does that consistently three times on the same page.
If this would have been a story book I would have kept reading anyway if the story would have been good. But these kinds of errors are unacceptable in a book that teaches programming where every letter is crucially important. I make enough errors on my own learning a new programming language. I don't want to guess what errors are mine and what come from the author of the book.
The illustrations that are supposed to help you understand basic concepts such as variables only confuse you. It feels like the author added them afterwards because his boss forced him too, and not because the author really wanted to include any himself.
I read the first 70 pages (I skipped the sections describing how to install PHP and its prerequisites since I already knew how to do that) and I didn't catch even one joke nor pun during that time. I remember the O'reilly Perl books where full of them. Ok, I'll admit humor is not essential to a programming book but it really makes the read so much more enjoyable with clever little puns.
I do not recommend this particular book to anyone. The O'Reilly Perl books and HTML books on the other hand were very, very good. So if you have a few books to choose from I would recommend the O'Reilly one. In general, that is.
Second Edition? Huh?, January 31 2008





When I received notification from O'Reilly that they were going to replace my copy of Learning PHP & MySQL for free based on the negative feedback received about the first edition, I was pretty excited. I hadn't yet delved into my first edition copy, and so I figured I'd get a nice refresher on PHP and MySQL by waiting to dive into the second edition. Imagine my surprise to find that the second edition is rife with typographical errors, inconsistencies in code examples, and bits of code in entirely wrong places! The command-line MySQL tutorial swaps table and field names between examples, making them awkward to work with, and typos in the code examples ("< strong > ... </ string >") could easily confuse novice web designers. I was finally prompted to write this review when reading the section on "Validating text boxes and text areas" that completely inappropriately reused the code example from the previous section, "Validating checkboxes, radio buttons, and selects".
I generally love O'Reilly books and recommend them readily to people looking for reference guides or tutorials, but I'll definitely be pointing people to other titles (albeit probably other O'Reilly titles) rather than this one for an introduction to PHP and MySQL.
Not bad at all, October 16 2007





I really enjoyed reading this one! The authors have an easy style that lets you accelerate if you already have a good grasp of that topic but want a refresher. If the section covers something you don't know then there are clear code examples and text that explains what the code does.
Don't make the assumption you'll learn lots of PHP and MySQL from one book! You'll get an introduction to both that is much lighter than covered in other O'Reilly books. Where this book shines is in the juncture of the two; it really makes clear some of the ways you can customize web pages using a database. Once you lay this one down you should spend a few hours with a favorite beverage; just toss some of the possibilities around in your head.
If you have a beginning understanding of PHP and/or MySQL, this book will help you take the next step. It will also help you understand technologies like Joomla and other database-driven websites. You won't learn how to program, in a general sense, but you'll get turned on by the possibilities. If you're already a coder but new to PHP and MySQL, you'll get a taste of what can be accomplished with this powerful combination.
Media reviews
"After youve mastered the fundamentals, you might want to continue your SQL study with another fine OReilly book, Learning PHP & MySQL (2nd Edition). The book, intended for beginners beginners with some HTML and graphic design background covers more topics and goes into greater depth than its Head First cousin. Despite the cute kookaburra birds on the front cover, the tone of this SQL book is less casual, but the writing style is equally clear."
-- Epublishers Weekly, Tools and Ideas for Surviving (and Thriving) in Technopoly
"For the techies interested in using open source technologies in the above domain, this book gives a useful introduction to working on the M and P out of the LAMP architecture. The concepts introduced in this book are useful for developing MySQL database linked dynamic websites based on PHP ."
-- Ganadeva Bandyopadhyay, Desicritics.org
"The discussions on Cookies, Sessions and Access Control, Security and Validation , and Error Handling make this a well-rounded book for the basic to the intermediate readers and implementers of these technologies. One particular aspect that seems to be a possible good addition to future editions of this book is the interaction with application servers in between the web and the database when considering these open source technologies."
-- Ganadeva Bandyopadhyay, Desicritics.org
Read all reviews
Got a Question?
"After youve mastered the fundamentals, you might want to continue your SQL study with another fine OReilly book, Learning PHP & MySQL (2nd Edition)."
--Epublishers Weekly, Tools and Ideas for Surviving (and Thriving) in Technopoly
![]() © 2008, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly Privacy Policy Contacts Customer Service Authors Press Room Jobs User Groups Academic Solutions Newsletters Writing for O'Reilly RSS Feeds Terms of Service |
Other O'Reilly Sites O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone O'Reilly FYI makezine.com craftzine.com hackszine.com perl.com xml.com |
Sponsored Sites Inside Aperture Inside Lightroom Inside Port 25 InsideRIA java.net |