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

8. Handling Images and Complexity > Images Are For Viewing

Images Are For Viewing

Finally! It’s time to show your users the fruit of all your hard work. They’ll probably never realize how long you slaved to get one single image showing up—and protecting all their other information in the process—but you know, and sometimes that’s enough.

Make sure you have a copy of show_user.php alongside create_user.html and create_user.php. You need to update show_user.php to select the user’s picture path from the users table, and then display that picture.

Note

As with all scripts that you’re updating, make sure you change require to require_once, include a reference to app_config.php, and update your paths to reflect you’re not using chapter-specific scripts/ directories. In any scripts that have HTML—like show_user.php—you should also check paths for things like CSS stylesheet and external JavaScript references.


  

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