Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 19th, 2006, 10:53 AM
Authorized User
 
Join Date: Jan 2005
Location: ipaja, lagos, Nigeria.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to p2ptolu Send a message via Yahoo to p2ptolu
Default online payment

i will like to develop an application that allows users to buy a card and type in the PIN number and the person's account will be refilled.

i need help on this how do i implement it because if i enter the pin it overwrites the existing amount online.

how do i add the amount to the amount online.


Reply With Quote
  #2 (permalink)  
Old February 24th, 2006, 04:54 AM
Friend of Wrox
Points: 464, Level: 7
Points: 464, Level: 7 Points: 464, Level: 7 Points: 464, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: Colombo, , Sri Lanka.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default


I assume you have a problem with your update SQL when updating the user account. Check your SQL you execute when updating user account. It should be like this.

UPDATE [tablename] SET [fieldname]=[fieldname]+newamount WHERE [condition]

This will over write the current value
UPDATE [tablename] SET [fieldname]=[fieldname] WHERE [condition]



nalaka hewage
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
implementation of online payment raaj Beginning PHP 2 April 20th, 2007 11:23 PM
online payment raaj Beginning PHP 2 April 20th, 2007 11:17 PM
Online payment js_newbie Beginning PHP 2 March 28th, 2007 04:27 PM
process of online payment rahulcbr Beginning PHP 3 January 29th, 2007 11:21 PM
Online Payment eapsokha Classic ASP Professional 3 August 31st, 2004 12:42 AM



All times are GMT -4. The time now is 04:20 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.