Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section B.2. MySQL Statements

B.2. MySQL Statements

In this section we consider the SELECT, INSERT, and UPDATE statements we use with the ContactManager in Chapter 16 and Chapter 17. It’s important to realize that we’ll be submitting these statements later via PHP as query strings, so while we’re showing them here as pure SQL statements, they won’t necessarily read so smoothly in PHP, which will require concatenating them.

B.2.1. The SELECT Statement and Fully Qualified References

Example B-1 shows the SELECT statement called by ContactManager that will be used to initially load as well as refresh the list of contacts whenever the database is changed.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint