Weekly Materials - Week 11
Chapter 8: Manipulating MySQL Databases with PHP
- Connect to MySQL from PHP
- Work with MySQL databases using PHP
- Create, modify, and delete MySQL tables with PHP
- Use PHP to manipulate MySQL records
- Use PHP to retrieve database records
- Explain and prevent SQL injection
- Utilize password encryption using SHAH1 and MD5
Assignments and Due Dates: View
CS2623 Coding Standards - requirements for all class assignments
PHP Programming with MySQL //Second Edition by Don Gosselin, et al
Chapter 8 - Manipulating MySQL Databases with PHP
Text Resources
Errata Sheet
Best Practices
SQL Injection
- MySQL SQL Injection Prevention
http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php
Password Encryption (also review pp.138-139 in text)
- Overview of MD5 and SHA1
http://phppot.com/php/md5-vs-sha1-hashing-in-php/ - Password Hashing
http://phpsec.org/articles/2005/password-hashing.html
Video: Lynda.com:
PHP with MySQL Essential Training by Kevin Skoglund
14. Using PHP to Access MySQL
Almost all videos
Optional Videos:
Database APIs in PHP
Introducing prepared statements19. Regulating Page Access
Encrypting Passwords
Salting Passwords
Adding Password encryption to CMS
New PHP password functions
If you choose not to use Lynda.com there are some resources below under Recommended Materials
PHP Tutorial: Password Encryption with MD5, SHA1, and Crypt by RiverCityGraphix
https://www.youtube.com/watch?v=e9nH-nsj7mk
SQL Injection - Simply Explained by Chris Linares (YouTube.com)
http://www.youtube.com/watch?v=FwIUkAwKzG8&list=PL15DACBB2C1DE384D
Chapter 8: PowerPoint from Text View (.ppt) | Print (.pdf)
If you need additional information regarding MySQL and PHP
- PHP for Web Designers by David Powers
6. Displaying Content From a Database - Imperva Security Shorts (YouTube.com)
Database Threats 101: SQL Injection
Other Security Resources (For Inquiring Minds!)
- SQL Injection Attacks by Example
http://www.unixwiz.net/techtips/sql-injection.html - MD5 Hash
http://www.tuxradar.com/practicalphp/4/7/11 - SHA1 Hash
http://www.tuxradar.com/practicalphp/4/7/10 - Salt Values to Secure Hashing
(Double Hash and Salt)
http://pbeblog.wordpress.com/2008/02/12/secure-hashes-in-php-using-salt/ - Rainbow Tables
http://www.rainbowtables.net/faq.php - MD5 Hash - Crypt
http://www.crypt-md5.com/ - MD5 Hash - Decrypt
http://www.decrypt-md5.com/ - SHA1 Hash
http://www.tuxradar.com/practicalphp/4/7/10 - How Rainbow Tables Work
http://kestas.kuliukas.com/RainbowTables/ - PHP Security Guide http://phpsec.org/projects/guide/ (for your personal reference)
- OWASP (Open Web Application Security Project) https://www.owasp.org/index.php/PHP_Top_5
PHPMyAdmin and MySQL which was included with your WAMP|MAMP download will be used for work with databases.
Chapter 8: Review Questions (.rtf file)
Test 3: Review Sheet
- SSP09: MySQL PHP (Complete, upload to Apollo1, then submit URL in the LMS)
- Weekly Quiz: Chapter 8 (Located in the LMS)