
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:
- adjusting the way your text editor treats text files
- using a different text editor, if possible
- posting a message to the online forum, asking for help
Complete Set of Scripts
phpmysql2_scripts.zip (139 KB, last modified 08/26/2009)
Extras
CSS File for Chapter 3 (4 KB)
Web page images for Chapter 14 (16 KB)

Thanks so much Mr. Ullman for the book. It is helpful for me.
You’re quite welcome. Thanks for the nice words.
I’m trying to download the CSS file for Chapter 3 – it doesn’t seem to be available any more? Any chance of it being made available again? Thanks
Sorry about that. I fixed the link. You may have to try it in a different browser (due to caching issues).
Thats great, thank you!
Sir Larry, I have read many Php Books and gone thorugh Video tutorials, but your book is just awesome. Its just awesome. Enjoyed reading it, thanks very much
Thank you. That’s very, very nice of you to say. Much appreciated!
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!
Hello Daniel,
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
I’ll definitely wait for your fourth edition, then, and pick up the PHP5 in the meantime. I like your writing style a lot. Right up there with all of the animal books I’ve read. Thanks again, to you.
Thanks, Daniel. And would you believe that’s the first time I’ve heard “right up there with all of the animal books I’ve read”?
Well, it is. Keep up the good work.
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!
Glad you found and used the site. Cheers!
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
Thanks
Mike
Hello Mike. Thanks for the interest in the books. I don’t personally sell them, but if you use the carousel widget, you can get to Amazon where you can buy them. The link to the newest edition of the PHP and MySQL book is:
http://www.amazon.com/PHP-MySQL-Dynamic-Web-Sites/dp/0321784073/ref=as_li_tf_cw?&linkCode=waf&tag=larrullm09-20
The PHP 6 and MySQL 5 is the previous version of that same book. You should NOT buy that one, too.
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!!
Thanks, Rob. Very much appreciated. Hope you like it and please do use the forums as needed!
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!
Thank you very much, Matthew. I’m glad the book is working for you. Good luck with picking up these new skills!