Reply
Updating numbers....
Old 06-09-2003, 06:00 PM Updating numbers....
Isaac's Avatar
Junior Talker

Posts: 2
Location: Hawaii
I am trying to get a Update script for ASP/Database/SQL, lol. I want to update a field on a users account. Its like his money. Right now when it updates it does this: 1, 11, 111, 1111, 11111. I need it to do 1, 2, 3, 4, 5, etc. Any help would gretly be apreciated, Thanks.



~Isaac~
www.swfoc.com
Isaac is offline
Reply With Quote
View Public Profile Visit Isaac's homepage!
 
When You Register, These Ads Go Away!
Old 06-09-2003, 06:23 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
I don't know ASP but would probably work if you had it pull the number from the database by method of a quiery. add one then update the record.
__________________
LipWeb.Net "Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Old 06-09-2003, 06:36 PM
Isaac's Avatar
Junior Talker

Posts: 2
Location: Hawaii
Well heres some script below of what I am working with:


<%
If Request("Action") = EditB Then
Set DB = Connect()
SQL = "UPDATE Users SET GP = '" _
+ Request("GP") + Request("GP1") + "' WHERE Username = '" + Session(SiteID + "Username") + "'"

Response.Write SQL
Set RS = DB.Execute (SQL)
Response.Redirect "welcome.asp"
Else
Set DB = Connect()
SQL = "SELECT gp FROM Users WHERE Username = '" + Session (SiteID + "Username") + "'"
Set RS = DB.Execute (SQL)
End If
%>


GP= there Money$
GP1= the number 1 that needs to be added to there cureent GP. Again any help would greatly be apreciated. Thanks.


~Isaac~
Isaac is offline
Reply With Quote
View Public Profile Visit Isaac's homepage!
 
Reply     « Reply to Updating numbers....
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12206 seconds with 12 queries