PHP 101 Tutorials: part 5 and 8

My assignment is to complete the Zend tutorials part 5 and part 8. Both tutorials were thoroughly explained in a way any experienced user would understand. However, these tutorials are so difficult for me to understand, I tried my best in following each step, but I struggled a lot.

On part 8, I had to connect the php script to the database while securing my personal information.

The assignment is: here.

The code of part 5:

The work of part 5 is: here.

The code of part 8:

I have to hide the personal information by censoring it with black rectangles.

The work of part 8 is: here.