Welcome to the companion Web site for the third edition of the book PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide, written by Larry Ullman and published by Peachpit Press. This page is specifically for the book’s third edition, published in December 2008 (ISBN 0-321-52599-x). 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 second edition was published in June 2005 (ISBN 0-321-33657-7). If you are using the second 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 THIRD 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 and SQL Commands
phpmysql3_scripts.zip (131 KB, last modified 11/25/2009)
The extras mentioned in the book can be found in the appropriate chapter folders in the complete set of scripts and commands.








It’s ok i found the problem i can see it now btw i appreciate ur book and its tutoring is very good thks man
Great. If you have any more problems, please use the support forums instead of the comments form, as it says in the comments form itself.
Hi Larry
I really like your book
I am trying to learn how to create a login system using your files
can you please tell me do I copy these files all into htdocs as one
I try to run it it says “failed to open stream no such file”
Thanks for your help
If you’re having problems and need assistance, please use the support forums.
hi Larry
Is the User management script still up-to-date regarding security. it seems to me its very vunerable to xxs and also simple sql statements since it does not check for the submitted “variable names” (not the values). i know it was not intended to be a complete version with tokens and so on but it might be needed to make the users aware of not using it on a live environment.
btw, best book in php for beginners.
Thanks for the nice words on the book. As for your question, it depends which particular script you’re talking about. If you need help with something, please use the support forums.
The URL specified in this book for a Companion Website is not working
http://www.DMCinsights.com/phpmysql13/
Has this been moved at all ???
Hey Larry,
I read this book about a year ago when I knew very little about web development. It has a tremendous amount of information in it and I really learned a lot. Thank you for making a great book.
- Luc Hall
Thank you very much for saying so. I’m glad you liked it!
Hi, Love your book! I can’t seem to find an sql file in the downloads folder for ch.5?
Really sorry! I was using a different database! Thanks for a great book and I just want to say it’s really kind of you to take the time to respond to users – you really don’t have to. I think you’re a great writer and any bad reviews on Amazon should be deleted! I look forward to buying your C++ book – that’s my next challenge!
Best of luck in the future!
No problem, John. Thank you for the very nice words and for the interest in my books. And, by the way, I always very much appreciate the positive Amazon reviews (in part to combat the negative ones). Cheers!
I was looking for the downloadable scripts for the 4th edition of PHP and MySQL. Would they be available on this site?
Yes, you can find them here: http://www.larryullman.com/books/php-and-mysql-for-dynamic-web-sites-visual-quickpro-guide-4th-edition/#downloads
I just want to say a very thanks to you, because your book has been splendid. I love the approach you used in addressing each lessons.
Thanks, Steve. Very nice of you to say!
This book is invaluable to me. I was trying to learn PHP for years, and bought this in 2009 after failing miserably with other titles. I found the book to be very well written, and found that whilst the examples given work well throughout the book, they also work very well when individually referencing things. I was worried that a book on PHP & MySQL would lead me to be able to copy the code in the book and reproduce, but not so with this one. I can use this book as a base to write near enough any application I can think of.
Unlike all of my other much more impressive looking, clean, neat and tidy computing books, this one is battered, bent, scribbled in, and very well used – the sign of an excellent book! I’ve just ordered PHP Advanced Object Oriented Programming, and very much look forward to improving my development skills.
Cheers Larry!
Thank you very much, Giles. Glad you’re liking it and it’s kind of you to say so. Thanks, too, for the interest in the PHP Advanced book!
Hello Sir I’m feeling delighted just by writing comments, because I’m writing it to a well known writer.. I have just stepped in PHP, i hav downloaded several ebooks on php from 4shared.com but i fnd urs as the most expailnatory…….As i go through this book i will try to enhance my knowledge on php…Thanks a lot………
Hi Larry,
Excellent book!
I’m finding it very easy to learn PHP, since I’ve learnt a little Java before. This fact alone gives me confidence that I can get a handle on PHP.
You are an excellent teacher! Stuff is very well explained and I like the pace of the book.
Cheers, Peter Kenny
Thank you very much, Peter. Glad the book was useful and it’s kind of you to say.
This is the best book I’ve encountered on this subject! Are all of your books written in the same way (with simple steps to follow)? Your way of writing got me motivated to learn even more!
Thank you very much. Yes, all my books are this way. It’s how I write!
Thank you for writing this very nice book!!! I have read many php books, but this is special… I enjoy reading it!!!
Thank you very much, Danson!
Hi Larry,
Your book is something else (i.e like a hand full of manner from heaven). Your style of writing is the best I have ever seen. I am currently working on a Social Networking site, and my phase of progress could be compared to the speed of light. This is because your book set out the path for me. Larry! if you were a Nigerian, I would have tagged you with the name: The General (In the Army). Thank you so very much
Thank you, Collins. I’m glad you like my work and thanks for saying so! Good luck with your project.
Hi there!
I really like the book. I’m doing the mySQL part of it and I was wondering what happened to the mySQL related scripts. Chapters 4 to 6 are missing from the downloadable set of scripts. Any suggestion. Thanks
Thanks for the nice words. If you look at those chapters, you’ll see there are no scripts in them.
Sir I also want to b a great web designer. I have learn in college. But I haven’t still not so good I want to b professional so pls let me know which book I start for PHP and Web developing. Hope to listen from you very soon
Thanks for the interest in my books. If you have no programming experience, you should start with “PHP for the Web“. If you’ve done some programming, or learn at a fast pace, you can start with “PHP & MySQL for Dynamic Web Sites“. Thanks!