Welcome to the companion Web site for the second edition of the book PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, written by Larry Ullman and published by Peachpit Press. This page is specifically for the book’s second edition, published in June 2005 (ISBN 0-321-33657-7). The first edition was published in May 2003 (ISBN 0-321-18648-6). If you are using the first edition of the book, you should go to that page. The third edition was published in December 2008 (ISBN 0-321-52599-x). If you are using the third edition of the book, you should go to that page. The fourth edition of the book will be published in Summer 2011.

Beside the handful of pages dedicated to this edition of this book, there’s plenty of other content on LarryUllman.com that you might be interested in. Use the “Post Categories” links above to browse by general topic.

You can download the code for the book using the link below. If you have any questions or problems, I’d recommend using the book’s corresponding support forum, where you’ll get the fastest answer.

Downloads

Every script in the text is available here to be downloaded. Some things you should know:

Although these scripts are named or numbered as they are in the book, they do include any updates and changes as warranted by errors that were found after publication. Thus, if you are having problems with a particular script, download the most current version here or check the errata section.

The URLs as referenced in the book (e.g. http://www.DMCinsights.com/php/hello.php) are not available for execution online.

These are the scripts for the SECOND EDITION of the book. If you are using a different edition, click the appropriate link above to find the correct page.

These scripts have been formatted with line breaks that will work on most systems running most text editors. If you have difficulty opening a script, try:

I’m currently working through this book, even as I’m writing this up. It’s a bit outdated, but still great for the learning process. It’s concise and educational without being too overbearing. I was curious what book you think I should look into buying next from you. PHP 5 or the third edition to this one? I don’t want to repeat the exact same stuff over again and I’m looking for something that integrates more AJAX. I appreciate your time and your knowledge. Thanks Larry!

Thanks for the nice words on the book and for interest in my other books. I actually just began writing the fourth edition, so I wouldn’t buy the third edition right now. The fourth edition will have an Ajax example or two, I think. I also discuss Ajax in my PHP 5 Advanced book and in my “Building a Web Site with Ajax: Visual QuickProject”. You could look into either of those. Thanks again!
Larry

Hi Larry, I am glad you have this accompanying website with all of the scrips in your book! having the updated scripts to hand is very helpful, saves allot of time and frustration due to small differences which could leave newbies like me confused. for example early on int he book the Form handler script had me scratching my head as i could not get it working, turns out making a simple change from “$name = stripslashes($name);” to “$name = stripslashes($_POST[‘name’]);” was all i needed, if it was not for this site id have given up early on. Many thanks!

Can I buy a ” Hard Copy ” of your books? I need those books from you as ” Hard Copy ” books, because I have very bad eyes to follow video training online and reading PDF’s on the screen. The screen light is knocking out my eyes. So I was searching on google for recommended books to learn webdesign programming and I landed on your site and read through to people reviews of your books and noticed that they are very positive about books. So I need ” Hard Copy ” of your books. Is this possible to order on your site? I need the books below and perhaps some more.
1)-PHP and MySQL for Dynamic Web Sites
2)-PHP 6 and MySQL 5 for Dynamic Web Sites
3)-I don’t know yet

Hi Larry, I’ve just started learning PHP using the 2nd edition of of your PHP and MySQL for Dynamic Web Sites, I’ve had this book lying around the house for some time now and was just wondering whether the information in the book is still ok to learn from, i.e not outdated? As I’m a noob at this would the PHP for the web forth edition be a better starting place? Thanks

Hello Rob. Thanks for the interest in the book. By this point in time, the second edition is somewhat outdated. If you can afford the $20 and are so inclined, I’d recommend getting the newest edition. If money is tight or you’re not sure that PHP/MySQL is for you, you could start working your way through the edition you have and see how it goes for you. If you’ve got no programming experience whatsoever and like a gentler introduction to things, I would recommend the “PHP for the Web” book over the “PHP and MySQL for Dynamic Web Sites”. Thanks again!

Thanks Larry, I’ve opted for PHP for the Web and the book is on order! I have some basic programming knowledge from Uni but that was some years ago now, I’m kinda starting from scratch. Look forward to reading the book and I hope it serves me well, I’ll also be asking questions on your forum no doubt!!

I read this book recently, and I was amazed. I am only 15 and I now use a lot of the PHP & MySQL codes I learned, on my website. So much better than boring, hassle full, static pages! Thanks for being a great author!

The site looks different because the 2nd edition of the book is about 8 years old and my site has changed several times since then (as it should). You do need a text editor or IDE to open the scripts, and you’ll need PHP and a Web server to run them.

Hi Larry, Would like to open with “Thank you” I have been teaching myself php and mysql over the last few years, being a full time single mum it’s a case of as and when I get the time to sit read, put into practise and learn. So although I’m getting there slowly not as fast as I’d like. But I digress, have to say your books ( and I have a few) out of all the books I have purchased over the years, have been by far the most all rounded and written in such a way that it makes it easier to take in and understand. My only wish would be that you would consider in a future edition you might consider going into more depth on the subject of form validation. It’s funny the site I have been building (a kind of learn as I build site) the one area I seem to find the least info on either on the internet or in the books I have purchased is form validation. Most books will tend to cover this in one very brief chapter. And don’t seem to go into any sort of depth by giving a couple of different examples. Sigh.. I still haven’t been able to find a decent validation for a contact us form! And I have been looking for almost a month.. Any way it would be wonderful if you might take this into consideration for any future book projects. For I know I’m not alone in wishing that more writers included a more in depth coverage of this topic. Whilst googling it I was astounded at the amount of people looking for a well written validation script.

Thanks Larry even though I am a french guy I do understand your book better than the french tutorial book on php n mysql since i still using the same book for 2 years now; i do not have the third edition but i hope the change are not much!! Merci beaucoup

Thanks Larry,i tried to use the code for the image in chapter 14 and 17 for the ecommerce application but unfortunately is not working and since i am using the old version(mysql qnd mysqli) i have issues with $dbc and all the mysqli functions i changed those as you suggested some parts are working properly but others no at all and the image can’t be displayed in the cart…they gave MIME type error and other…My project is to create a form whereby i can enter customer’s details,upload their pictures as well as be able to see their informations and pictures on the form!

Trackbacks and Pingbacks:

[…] a book on the two technologies sitting around for some time. So I've been working my way through PHP and MySQL for Dynamic Web Sites (2nd Edition) by Larry Ullman. So far, in my humble opnion, it's an excellent book. I'm finding it […]