Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Today in History Script.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Today in History Script.

 Post Reply Post Reply Page  <1234 5>
Author
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 6:45am

is the database in the same folder as the script? cause the server.mappath is saying that it is...

Server.MapPath("civilwar.mdb")

Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 6:55am

Yes, the database is in the same path.

- D. Mackey.
- www.civilwarsearch.com

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 7:44am

you don't have the recordset object

<%
' Variables.
Dim adoConn
Dim rsToday
Dim strSQL

Set adoConn = Server.CreateObject("ADODB.Connection")
Set rsToday = Server.CreateObject("ADODB.Recordset")
adoConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("civilwar.mdb")
strSQL="SELECT tblToday.mYear, tblToday.mEvent, tblToday.mMonth, tblToday.mDay Where tblToday.mMonth =" & month(date) & "tblToday.mDay =" & day(date)

rsToday.Open strSQL, adoConn
Do While Not rsToday.EOF
Response.Write(rsToday("mMonth"))
Response.Write(rsToday("mDay"))
Response.Write(rsToday("mYear"))
Response.Write(rsToday("mEvent"))
rsToday.MoveNext

Loop

rsToday.Close
Set rsToday = Nothing
Set adoConn = Nothing

%>

Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 9:50am

Okay...I've updated the script again but now I'm getting the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'mMonth =10mDay =24'.

/tdih/todayinhistory.asp, line 13

Respectfully,

David.

Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 9:55am

Hey Guys,
   I figured out what I was missing...I was missing an and operator. So now it is working, you can check it out at www.dhq.nu/tdih/todayinhistory.asp. I'll be adding to the database and expanding its capabilities soon now that I've got this basic display part down...The URL where I will be putting this and any other scripts I design will be www.dhq.nu/scripts/ but right now that area doesn't exist. Will let you know soon when it is up.
Respectfully,
David.

Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 12:38pm

Okay....I've created a page for any scripts I create in the future and the current TDiH script. I'd appreciate any ideas you may have that aren't already mentioned on the To-Do list. For anyone who is interested you can check out the pages and download the script at:
http://www.dhq.nu/scripts/
The script was written in Win32Pad while the database was created using Web Matrix.
Respectfully,
David Mackey.

- www.civilwarsearch.com

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 2:00pm

http://www.dhq.nu/scripts/ =

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 9:52pm

Sorry about that - my server was working weird but if you go to www.dhq.nu/scripts/ it should work now. :-) Also, I've added a web-based interface to add database entries and I will update the version soon (currently without this feature it is .2 then it will be .3).

Respectfully,
David Mackey.

Back to Top
 Post Reply Post Reply Page  <1234 5>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.