Thursday, May 8, 2008

Assignment 4 - List and View

My favorite bit of code from assignment 4.

|img src="images/m|?=$myID?>.gif" /> (vertical line replaces less than symbol)

It would never have occurred to me that php code could be used to provide part of the html name of an image. It is so neat and simple. It automatically associates the correct image with the correct view and associated database information. And it imposes a certain amount of discipline and regularity in naming images.

My primary client has no use for these list and view instances, but another client wants to sell novelty merchandise on-line. These exercises represent the beginning of a possible rebuilt of their site.

No comments: