Parkland College > Fine & Applied Arts > Graphic Design | Web Design >
Student Links > GDS 215 > Exercise #4

 

 

GDS 215 WEB DESIGN III
Exercise #4: Introduction to PHP
Instructor: Paul Young

 

Objective

To learn Dreamweaver's dynamic page functions and database tools by recreating this web page.

 

Procedure

prepping for the exercise

  1. download starter files, move to upload folder
  2. new site "e4-rocky"

making the CSS style sheet

  1. open "appearance.html"
  2. examine file structure
  3. add new CSS style (define in new style sheet file)
  4. redefine <p>: 11/20 trebushet bold
  5. redefine <a>: decoration none, color=blue
  6. new style (class) ".head": 16/20 trebushet bold
  7. new style (CSS selector) "a:hover": underline
  8. new style (class) ".date": font color=orange

setting up the server

  1. edit site "e4-rocky"
  2. remote and testing server ("jsmith" doesn't exist yet):
    host: ftp.electric-pictures.com
    dir: public_html/jsmith
    login: gds215student
    pw: _______________
    testing server URL prefix:
    http://gds215student.electric-pictures.com/jsmith/
  3. duplicate "appearance.html", rename "appearance.php", open
  4. window > databases: + connection (this is site specific)
    name: ep
    mysql server: 127.0.0.1
    user: paulananda2
    pw: _______________
    database: electric-pictures_com_-_db
  5. upload files including "Connections" folder (for testing)

creating a database table using phpMyAdmin

  1. browse to:
    http://65.61.219.1/MyAdmin/indexsite.php
    user: paulananda2
    pw: _______________
  2. use database "electric-pictures_com_-_db"
  3. create new table "jsmith" (5 fields):
    ID, tinyint
    visible, tinyint
    date, int
    date_print, text
    text, longtext
  4. make ID primary
  5. edit ID: auto_increment
  6. insert one row for testing

inserting fields in "appearance.php"

  1. window > bindings: + record set (query) (this is file specific)
    connection: ep
    table: jsmith
    filter: "visible" = form variable (1)
    sort: date (ascending)
  2. replace date with field "date_print"
    replace text with field "text"
  3. click "live data" view to test
  4. select date and text
  5. window > server behaviors: + repeat region (all records)
  6. add new dates with phpMyAdmin
  7. save, upload (cmd+shift+U), preview (F12)
  8. make links to your work from your projects page
  9. browse to your "live" projects page with a browser
  10. test on a PC

 

Schedule

See Calendar.

 

 

______________________________

Last updated: 2/29/04 • Webmaster: Paul Young

 

 

Student
Exhibition

Influential
Designers

Internet
Resources

Tips, Tricks
& Handouts

Student
Links