FrontPage 2000 Web Page Database Connectivity. Client /Server Architecture Database Server PCs...
-
Upload
rafe-marshall -
Category
Documents
-
view
218 -
download
0
Transcript of FrontPage 2000 Web Page Database Connectivity. Client /Server Architecture Database Server PCs...
FrontPage 2000
Web PageDatabase Connectivity
Client /Server Architecture
Database Server
PCs
Middleware
Web Client/Server Architecture
Client Web Browser
HTTP Server
INTERNET INTRANET
Multi-Tier Client/Server Architecture
DatabaseServer
Client Web Browser
HTTP Server
INTERNET INTRANET
Connecting Databases to Web Servers: Overview
• Three-Tier C/S Architecture• CGI – Common Gateway Interface
– C, Perl, VBScript, Delphi etc.
• ODBC - Pointer to DBMS• ASP Example Database Connection• Overview of FrontPage2000
ASP Code: Example<%@ LANGUAGE = "VBSCRIPT"%><%Set OBJdbConnection =
Server.CreateObject("ADODB.Connection")OBJdbConnection.Open "is4506","", "”
strSQL = "INSERT INTO Students (FName, LName, Email) VALUES
('" & Request.Form("first") & "', '" & Request.Form("last") & "','" & Request.Form("email") & "')"
OBJdbConnection.Execute(strSQL) OBJdbConnection.Close%>
Connecting Access 2000 Databases: Steps
• Install a personal web server and FrontPage 2000– The personal web server can be installed using IIS
software
• Build a web site– Design a home page, query pages, and other pages
using an authoring tool such as FrontPage
• Connect the Access database with the web site• Publish the web site• Best info on database connection is FP2000 Help
Connect the Access Database with the Web Site
• Create new subdirectory under C:\InetPub\wwwroot\subdirectory
• Start FrontPage 2000• Create a new web (File/New/Web) and type in a
subdirectory: – http://<your computername>/subdirectory or – C:\Inetpub\wwwroot\subdirectory
• Import the database to the new web (File/Import/Add File)– When asked if you want to create a new subdirectory
fpdb for the database, say yes
Connect the Access Database With the Web Site (Cont’d)
• Create links on the home page to the database pages
• To view a table or query in your database, follow: – Insert/Database/Results/User an existing
connection/select table or Query/<follow wizard instructions>
• To create a new query using an existing table:– Use Wizard and select “More Options”
• To insert records– Insert/Form/One-Line Text box– Manually set parameter to hook to database file