asp.net

E

Edward Gillan

Hi there,

I need some feedback on this page

http://www.thephoenixgroupuk.com/selfdrive_hire.aspx

I have build my database and now uploaded to my hosts server. And this
form on this page gets information from it (obviously), but what i
have a problem with is, if you select a vehicle, lets say the Ford KA,
and then select a start date and an end date, then click submit, you
will always get a response saying this vehicle is not available on
this date, no matter if its never been selected before, what could be
the problem?

thanks

edd
 
A

alex

i select start date 1 Jan 04 and end date 1 Jan 05

your sql says:

.... and ( rentStartDate > #1/1/2005# or rentEndDate < #1/1/2004# ) ...

you need to switch the field names or the values
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top