TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Re: Need CGI& database: Hooks from Microsoft IIS/FrontPage/Access?
Subject:Re: Need CGI& database: Hooks from Microsoft IIS/FrontPage/Access? From:"Mark Baker" <mbaker -at- omnimark -dot- com> To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Wed, 19 Jan 2000 14:41:48 -0500
David Slonosky wrote
> Hi. I'm at a stage in the development of various sites around here that I
*need*
> some sort of CGI interface to a database to manage files.
>
> I'm not afraid of doing the work, but I need some pointers to how to get
it
> working.
>
> Currently, my available tools are FrontPage 98, Microsoft IIS, and
Access97.
>
> Please don't tell me how great PHP/MySQL/ColdFusion/Apache/Perl/UNIX/Linux
would
> be. I would tend to agree, but they aren't viable options at this point in
time
> unless I can prove that I *cannot* use my available tools to create web
> application/information pages.
Well, you can't make an omlette without breaking eggs.
CGI is an interface for a web server to talk to a custom written computer
program. You can't write a computer program without using a programming
language. None of your current tools are programming languages. (Access has
in internal scripting language, but you can't build executables.) Ergo you
cannot use your current tools to write CGI programs.
Since it didn't make your stop list, I'll recommend OmniMark (url below). It
is free, cross platform, and it is very easy to write CGI programs that
access a database. Here is a sample function that builds a page listing
items from a database:
define function list-page as
local dbDatabase db
local dbField fields variable
local stream query
set db to dbOpenODBC dsn
set query to "SELECT CustomerID, Salutation, "
|| "FirstName, LastName "
|| "FROM Customer"
dbQuery db sql query record fields
output "<H2>Customer list</H2>%n"
|| "<p>Click on a customer to see details."