3.0 out of 5 stars
This book versus the new O'Reilly one, Jun 7 2004
By A Customer
This review is from: PHP and MySQL Web Development (Paperback)
I bought this a few months back and I found it useful getting started with PHP and MySQL. The problem, though, is that it doesn't go far enough: the material on PDF doesn't actually show you how to write a report from a database or get anything installed, there's almost nothing on advanced MySQL, and just 10 pages on OO programming. I also found the code hard to get going and a bit buggy. The 2nd edition seems to not really have moved with the pace of the area and it left me unsatisfied. In the end, I went in search of another book.
Williams and Lane's new 2nd edition of "Web Database Applications with PHP and MySQL" (O'Reilly, 2004) has done it for me. It weighs in at almost 800 pages, a few hundred more than its 1st edition, and it looks like an almost complete rewrite. It covers PDF reporting in depth, installation on Windows and Mac OS X, and has chapters towards the end on PEAR, advanced MySQL, and PHP55 OO features. By the time I bought it, I guess wasn't really a newbie, but I still think it is gentle enough if you're still getting the basics (the first 200 pages or so introduce PHP and MySQL). It's a pretty awesome book, and shows again why O'Reilly are a safe bet (though perhaps it's wise to wait for the 2nd editions, judging by the bugs in the 1st edition of this one).
I reckon both books are worth the money, but if you just want one, then O'Reilly's new book is better.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
4.0 out of 5 stars
2nd Edition rocks!, May 14 2004
This review is from: PHP and MySQL Web Development (Paperback)
This book is so cool! As a beginner in PHP I leaned a lot in this book. The price is reasonable. I wish all books are like this "by example type", like the PHP book by Julie Melonie that book also rocks!.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
3.0 out of 5 stars
Fine overview, not the best code, April 27 2004
This review is from: PHP and MySQL Web Development (Paperback)
Overall this is a fine, if physically weighty, introduction to PHP. It will take a developer who understands web application flow reasonably well from knowing nothing about PHP to understanding how to build complex web sites.
The first 150 pages or so are on the syntax of PHP. The last 20 of those are on Object Oriented PHP (version 4), and about 10 of those are on the basics of OO programming. So I wouldn't try and learn OO PHP from this book (see Advanced PHP Programming for that.)
Section two, on database programming, starts with an introduction to the basics of database design, moves onto the mechanics of MySQL and it's interaction with PHP. It finishes with a very brief section on PEAR. This is the part that caused me to give the book only three stars. First, the database access uses string concatenation, which is error prone and insecure. Even worse, the section on PEAR, which supports the '?' operator in SQL statements, fails to mention that feature or it's advantages. Since most PHP programming is about putting a face on a database, teaching how to do databases the right way is extremely important. For a lesson in how to do database access in PHP right see another SAMS PHP book; Advanced PHP Programming.
Up to chapter twenty-four the book progresses by talking about each technology (e.g. authentication, date manipulation, regular expressions, etc.) as a sort of stove pipe. The chapters are generally short, and are well written and consistent. Graphics are used sparingly, which is appreciated.
With chapter twenty-four and beyond the author presents common tasks (e.g. login pages, shopping carts, etc.) with example applications. This is an effective technique as most of these problems involve bringing together several PHP technologies and understanding how to use them as a whole.
Overall I liked this book. I did take exception to the SQL problems in section two and I marked my review down because database access is so important to PHP web development. WIth the caveat that the reader should look elsewhere for advice on proper PHP database development I would recommend this book to anyone with some web experience who wants to develop dynamic sites with PHP.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No