# /www/seia/examples-basics/quotations-pseudo-code.txt # philg@mit.edu # any script should start out at the top with a comment or some other # specification at the top of what query data can be expected to # come in with the request. In this case we expect that this # script can be invoked via /quotations (no extra info) or # /quotations?order_by=date # Before you can run this program, you must create the quotations table # in the RDBMS. To do this, run your RDBMS shell client (e.g., SQL*Plus # for Oracle) and enter the following table definition: # create table quotations ( # quotation_id integer primary key, # insertion_date date, # author_name varchar(100) not null, # category varchar(100), # quote varchar(4000) # ); set page_content " Quotations

Quotations


$option

Add a Quotation

Author
Category
Quotation

superstudent@greatschool.edu
" # this is the AOLserver API call to return a page to the user # note that we have to explicitly specify the HTTP status code # (200 or "OK") and the MIME type of "text/html" ns_return 200 text/html $page_content