navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

RE: Calling a date

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> RE: Calling a date
Page: <<   < prev  1 [2]
 
malky800

 

Posts: 116
Joined: 1/11/2006
Status: offline

 
RE: Calling a date - 2/14/2006 16:22:40   
My html page response was as follows but nothing went into the database.

INSERT INTO Table1 (name1, email, question, [date]) VALUES ('Test','Test@testdomain.com','My
Question',#01/01/2001#)

(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Calling a date - 2/14/2006 16:25:57   
quote:

My html page response was as follows but nothing went into the database.


Yes, we stopped it with a Response.end - now let's try to build the query one piece at a time. Try this one next:

query="INSERT INTO Table1 (name1) VALUES ('" & name1 &"')"

If that works, continue adding fields until we find one that fails.


_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to malky800)
malky800

 

Posts: 116
Joined: 1/11/2006
Status: offline

 
RE: Calling a date - 2/14/2006 16:40:18   
All up to here works perfectly.

query="INSERT INTO Table1 (name1,email,question) VALUES ('" & name1 & "','" & email & "','" & question & "')"

This doesn't work anymore

query="INSERT INTO Table1 (name1,email,question,date) VALUES ('" & name1 & "','" & email & "','" & question & "','" & now() & "')"

Remind me how to put the date in properly.

(in reply to rdouglass)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Calling a date - 2/15/2006 8:51:16   
query="INSERT INTO Table1 (name1,email,question,[date]) VALUES ('" & name1 & "','" & email & "','" & question & "',#" & now() & "#)"


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to malky800)
malky800

 

Posts: 116
Joined: 1/11/2006
Status: offline

 
RE: Calling a date - 2/15/2006 9:30:30   
WoW! i don't know why, but now it worked!

Thank you everyone for your time and effort in helping me!

(in reply to Spooky)
Page:   <<   < prev  1 [2]

All Forums >> Web Development >> ASP and Database >> RE: Calling a date
Page: <<   < prev  1 [2]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts