Home | Advertising Info77 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Batch/multiple UPDATE with QueryString
From: Patrick Arkley
Date: 6/30/2003 10:22:41 AM
IP: 62.191.140.162



 

This is how my QueryString looks like:
http://.../showres.asp?resid=69&place69=1&points69=
1&lap69=1.34.67&resid=68&place68=1&points68=8&lap68=1.36.77...etc

This is the code I´ve put before HEAD:
DIM place
DIM points
DIM lap
DIM resid
FOR EACH fld IN Request.QueryString
IF left(fld,5)="resid" then
resid=right(fld,len(fld)-5)
Set Conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Conn.Open "gokartDSN"
sSQL=UPDATE Resultat SET place=" & request.QueryString("place" & resid) & ",points=" & Request.QueryString("points" & resid) & ",lap=" & Request.QueryString("lap" & resid) & " WHERE resID=" & resid
Conn.execute sSQL
END IF
NEXT

This is the error message I get:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/aspcit/showres.asp, line 33
*
sSQL=UPDATE Resultat SET place=" & request.QueryString("place" & resid) & ",points=" & Request.QueryString("points" & resid) & ",lap=" & Request.QueryString("lap" & resid) & " WHERE resID=" & resid

The star above the R is the marker for the errormessage.
The UPDATE-string is qbviously wrong but I can´t find out what it could be.

Please help me.


__________________
Rgds

Patrick Arkley


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com