Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 2
Location: Hawaii
Trades: 0
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!
 
 
Register now for full access!
Old 06-09-2003, 05:23 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
"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, 05:36 PM
Isaac's Avatar
Junior Talker

Posts: 2
Location: Hawaii
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.22416 seconds with 12 queries