Week4 office hours

Post on 05-Dec-2014

921 views 1 download

description

 

Transcript of Week4 office hours

Week 4 Office Hours notesWeek 4 Office Hours notes

September 20, 9pm

Course BusinessCourse Business• After Saturday 3 weeks left

S d 10/1– Saturday 10/1– Saturday 10/8– Class done – all badges awarded 10/15!

• Check MyGrades for your progress– Remember to post final assignment in Grade Center

– Add your Badge work to the Student Gallery Page

Endorser BadgeEndorser Badge

• Yes I now realize not everyone will be able toYes, I now realize not everyone will be able to earn that one:– The requirement is removed– The requirement is removed.– But, as you have all benefited from being endorsed please keep up the collaborative spiritendorsed, please keep up the collaborative spirit.

– What can we recognize the hard work of those who, because of timing, do not get the chance towho, because of timing, do not get the chance to earn the endorser badge?  

New Badge ProposalNew Badge Proposal• Sisyphean Badge (Participation)

– “As a punishment from the gods … King Sisyphus was made to roll a huge boulder up a steep hill, but before he could reach the top of the hill, the rock would always roll back p , ydown, forcing him to begin again.  The maddening nature of the punishment was reserved for King Sisyphus”and working on web programming can oftenand working on web programming can often have a similar feeling.http://en wikipedia org/wiki/Sisyphus– http://en.wikipedia.org/wiki/Sisyphus

Sisyphean Badge PROPOSALSisyphean Badge PROPOSAL

• For anyone with the persistence of Sisyphus:For anyone with the persistence of Sisyphus:– Nomination to be made by an existing Endorser badge holderbadge holder

– 2nd nomination from existing Endorser badge holderholder

– Nominee must actually complete the badge that they are struggling withy gg g

– Will be awarded in lieu of the Endorser Badge – it is one or the other – not both.  

PROPOSAL? Do you agree?PROPOSAL? Do you agree?

• If there are no objections give me a day or soIf there are no objections, give me a day or so to get it posted

• 10 pts• 10 pts.• Comments? Feel free 

il /email any concerns/questions.

Working with PHP and MySQL Database ApplicationsHTML

PHP

HTMLjQueryCSS

SQL

PHP

Used by:Used by:

• WordPressWordPress• Drupal

b k ( l fi )• Facebook (at least at first)• Flickr• Other web‐based applications• Other content management systemsOther content management systems

Web Hosting accounts all offer some type of web‐based Control Panel

To work DIRECTLY on the Database Server use phpMyAdmin

3 Really useful SQL statements3 Really useful SQL statements

• SELECTSELECTSELECT column_name(s)FROM table_name

INSERT• INSERTINSERT INTO table_name (column1, column2, column3,...), )VALUES (value1, value2, value3,...)

• UPDATEUPDATE table_nameSET column1=value, column2=value2,...WHERE some column=some value_ _

http://www.w3schools.com/sql/default.asp

Working with PHP and MySQL Database ApplicationsHTML

PHP

HTMLjQueryCSS

SQL

PHP

SELECT in phpMyAdminSELECT in phpMyAdmin

INSERT in phpMyAdminINSERT in phpMyAdmin

UPDATE in phpMyAdminUPDATE in phpMyAdmin

1. Set Database connection1.  Set Database connection

Now in PHP

Working with PHP and MySQL Database ApplicationsHTML

PHP

HTMLjQueryCSS Which database?

SQL

PHP Login/password

2. Fetch the data from a table2. Fetch the data from a table

Now in PHP

3. Display results3. Display results

Now in PHP

4. Insert some new data4. Insert some new data

Now in PHP