Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2005, 10:34 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default what is wrong with this syntax

   <%
if timeoption = "option_bookings_only" then
response.write "Option"

Set rs=con.execute("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'")
while not crm.eof
response.write ("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'") & "<br>"
crm.movenext
wend
'response.write "NO RECORDS!"
response.redirect("bookings.asp?badlogin=true")
end if
%>

what is wrong with this syntax?

it just crashes my IIS

Picco

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 23rd, 2005, 10:44 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

Changed it to this:

<%
if timeoption = "option_bookings_only" then
response.write "Option"

Set rs=con.execute("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'")
'response.write ("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'") & "<br>"
while not rs.eof
rs.movenext
wend
response.write "NO RECORDS!"
'response.redirect("bookings.asp?badlogin=true")
end if
%>

still crashes my IIS/DB!"!!!!!!!

WTF?

Picco

www.crmpicco.co.uk
 
Old February 23rd, 2005, 11:59 PM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there any error shown?

What is the name of ASP file?
Is it bookings.asp? then you are looping in it. please take away the redirect code.

Please clear all your cache and try again.


Shibu Narayanan
Software Associates





Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong here? nero XSLT 4 October 3rd, 2007 03:42 PM
Where did I go wrong??? ahc2inc VB.NET 2002/2003 Basics 3 September 28th, 2004 08:19 PM
Anyone knows what is wrong with this syntax? kasie MySQL 1 June 11th, 2004 09:41 PM
Right or wrong? ÕÅÃÍ C++ Programming 6 February 27th, 2004 02:27 AM
What's wrong here? lyonsdigital Beginning PHP 2 August 7th, 2003 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.