Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Serving and Management
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Serving and Management how to web server support forum

Reply
 
LinkBack Thread Tools
Old 05-19-2006, 05:16 AM   #1 (permalink)
Registered User
 
help-meee's Avatar
 
Join Date: May 2006
Posts: 2
OS: XP


Web-Database Link

I'm trying to link a database to my website, im currently using Microsoft Frontpage and Access. I have tried messing around with the FrontPage database wizard and templates, but it will not display data, and says something about '.asp' files and needing an internet server that supports 'active server pages.' Also needing querys for searching the data on the webpage.

I'm completely confused so any pointers will be appreciated.
help-meee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-19-2006, 11:07 AM   #2 (permalink)
Retired
 
gamerman0203's Avatar
 
Join Date: Oct 2005
Location: Grand Rapids, MI
Posts: 2,144
OS: XP MCE, Ubuntu Gutsy

My System

you will need to save the pages as '.asp'. Then order to use them, you will need to have IIS (Internet Information Services) running and access your site as a normal web page.

To install IIS:
start>control panel>add/REmove programs
Click the windows components button on the left side
check the box near IIS and click OK. It will install IIS. might ask for your OS disk. IF the box is already checked then IIS is installed. Go to next step.

Once that is done, then move your site's folder into the 'Inetpub' folder on your C: drive. Then right click your sites folder and click properties. Click the sharing/Web sharing tab at the top and make sure it is shared or shared as a web page.

Then open IE and type "http://localhost/mysitesfolder/anypage"

This will bring up your site how it will be seen on the web. By installing IIS you turned your computer into a local web server for yourself.

As for the web pages themselves, you'll be best off teaching yourself ASP. That will get your the farthest. I can try to assist slightly here, but without knowing exactly what you want to do, I can't do much.

Put this just below the <body> tag. This will connect to your database:
<%
Dim objCon
Dim rsobj
Dim strSQL
Set objCon = server.CreateObject("ADODB.Connection")
objCon.Open = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="& Server.MapPath(" yourdatabasepath.mdb") (<-This is supposed to be on the same line as 'objCon.Open')
Set rsobj = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM tableindatabase;"
rsobj.Open strSQL, objCon

%>


Once you connect to your database then you can pull information out of it to write to the page. This is a simple script that will write all records in the table to the page:

<%
Do while not rsobj.eof
Response.Write(rsobj("field1"))
Response.Write("<BR>")
Response.Write(rsobj("field2"))
Response.Write("<BR>")

rsobj.movenext
loop
%>


That script will write Field1 and Field2 for every record in that database.

I could go much much much more into depth, but I'm not going to just yet. If you still need help, then tell me what you are trying to do and I'll see what I can produce for you. Gosh I love this stuff!!!

-Dan

Last edited by gamerman0203; 05-19-2006 at 11:09 AM.
gamerman0203 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-22-2006, 02:51 AM   #3 (permalink)
Registered User
 
help-meee's Avatar
 
Join Date: May 2006
Posts: 2
OS: XP


Thanks for the help, I've had some other help from other teachers in the school, so i will try out your suggested method.
help-meee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 03:32 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85