Archives For phpmysql4

I’m happy to say that I should (hopefully) be finishing the first draft of the fourth edition of my “PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide” this week. Today I’ll finish one of the new chapters, introducing jQuery. The chapter’s a bit longer than I had originally hoped (30+ pages), but I think it works very well.

The chapter begins with a discussion of jQuery and JavaScript, and a sidebar on the best development tools to assist in your JavaScript programming (or, more importantly, debugging). Then the chapter shows how to incorporate the jQuery library and how to do a simple test of it. Next, you’ll learn how to select page elements using jQuery, and write an HTML form for the example to follow. After that is coverage of event handling and DOM manipulation, which will round out the example.

The first specific example is a widget cost calculator (similar to one done in PHP earlier in the book), with JavaScript performing the calculations and jQuery being used to show and hide error messages, change the classes assigned to elements, and update the content of the page.

The chapter concludes with several pages on Ajax. That specific example is a login form, with a server-side PHP script validating the login data, and jQuery updating the page appropriately.

I think the chapter presents a good introduction to jQuery, within the context of the entire book. Thanks to the new “Review and Pursue” section, many ideas for where to learn more or to practice what you’ve just learned are suggested.

As I said, I should be submitting this chapter today. Over the week I’ll finish the last remaining chapter: another new one introducing Object-Oriented Programming in PHP. After that, there’s just the appendix and introduction, neither of which will take much time. So I’ll have the first draft of the book done by the end of the month, and I’ve already completed seven chapters of the rewrites. I think the new edition is turning out well, and I’ll be happy to have it complete and on its way to the printer in July!

I’m just about finished with Chapter 7 of the fourth edition of my “PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide”. I thought I’d take this time to finally share the rough version of the Table of Contents (this is actually version 2, as the first version was changed while working on the SQL and MySQL chapters).

In my newsletter, I had presented some of my thoughts as to changes for the fourth edition, and I received a ton of very useful replies. Before showing the TOC, I want to discuss the feedback and how that impacted my plan. Continue Reading…

I’m wondering what, if anything, you’d like to see in the next edition of my “PHP and MySQL for Dynamic Web Sites” book. This will be the fourth edition, which I’m going to start writing soon. The immediate plan is to update all the code for the latest version of PHP, remove references to PHP 6 (PHP 6 died since I started writing the last edition of the book), and add a “Review and Pursue” section to the end of each chapter, as I did with the fourth edition of my “PHP for the Web: Visual QuickStart Guide”. But I’m fortunate that I should have room for a new chapter, so I’m wondering what you might like to see. Ideas off the top of my head include (in no particular order):

  • Another example chapter
  • An introduction to a framework
  • A quick (very quick) introduction to object-oriented programming
  • A JavaScript primer
  • More information about Web servers (such as .htaccess files)
  • More about databases

So what would be meaningful to you? What have I missed in other editions of this book or my other work? What haven’t I covered enough?

Thanks in advance for any input you may have!