Thursday, April 29, 2010

Final Project Wireframes






Wednesday, April 28, 2010

Popup Balloons ("tooltips") via Javascript

Found this Popup Balloons javascript class

http://gmod.org/wiki/Popup_Balloons

I installed and tried it - works great.

Friday, April 23, 2010

Class 9 Homework: Image Upload with Login

It works, for the most part. Another productive Friday afternoon at work. Why don't you give it a try?

(Note: Still a few things to add, e.g. pagination).

After a couple of failed attempts, was finally able to try the Vietnamese sandwich at Baoguette Cafe on St. Mark's Place. Must've been the early break for lunch, because when we left the tiny place was packed.

The eponymous sandwich was tasty, somewhat saltier than I expected. At $5.75, not a bad deal for lunch, but purists would probably have something to say about the taste and price. (The equivalent price at Vietnamese restaurants in Chinatown is roughly $3-$4).



Friday, April 16, 2010

Class 8 Homework: Message Board with Image Upload

I used the MOVE_UPLOADED_FILE built-in PHP command as outlined in the W3schools and TiZag tutorials instead of Amos' uploader class.

Got it to work almost at 5pm, just in time! Check out my images!

I should add more error handling (e.g. size, type) later on.

Class 8 Homework: Message Board

This is a little bit (make that "very") barebones, but not bad for a lazy Fri afternoon @ the office. Now I can go out and play tennis!!!

Check out my Bare Bones Basic Bulletin Board (BBBBB).

Saturday, April 10, 2010

Class 8 In-Class Assignment: Get Products from DB

After going around in circles, moved the "disconnect" statement to the main calling program, and voila!

Wednesday, April 7, 2010

Class 7 Optional Advanced PHP Homework: Using Files

Slightly modified version using files to store beer glass descriptions instead of hardcoded arrays. Here it is.

Notes:
Main calling program stayed the same except for a different PHP include file, in this case it was "read_file.php" which read each line in the text file "beerglass_info.txt" (semi-colon delimited), exploded the fields into a temp array, and stored that into the beer glass multi-dimensional array.




After that rather disappointing lunch (see previous post), and a tough day learning the ins and outs of PHP, time for some soothing afternoon tea in a relaxed environment - where else but Cha-An tea house? I had the afternoon tea set (shown above) accompanied by a pot of my favorite genmaicha. Not only filling but makes all your PHP cares go away.

Class 7 In-Class Assignment: E-Commerce PHP version

After some initial confusion and adjustment to thinking in PHP terms, here is the result.
The multi-dimensional array contents are defined in the file "_beerglass.php".





Yes, that seems like a lot of food - I got the lunch special (udon and curry rice) at Udon West on St. Mark's Place, despite not being especially fond of udon (prefer the thinner soba noodles) nor was I particularly hungry. Guess I just wanted to try the Japanese curry which sadly feel short of expectations which were admittedly quite high since I'm a regular at GoGo Curry on W38th St.