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
  • PrintPrint
Share this Page URL
Help

14. PHP > Processing and Using User Data

Processing and Using User Data

Up to this point, we’ve shown you how to query and return results from MySQL. However, all our examples are simple because they don’t take user input and use it in the querying process. Indeed, unless you change the data in the database, the queries we’ve shown produce the same results each time. This section shows you the basics of securely and effectively including user data in the process to customize your query input and output.

The HTML entry form shown in the Firefox web browser

Figure 14-2. The HTML entry form shown in the Firefox web browser

Consider an example of an HTML page. Example 14-4 contains a form that’s designed to capture details about a new artist and album to add to the music database.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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