Wrox Programmer Forums
|
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 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 19th, 2006, 11:53 AM
Authorized User
 
Join Date: Jan 2005
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.


 
Old February 24th, 2006, 05:54 AM
Friend of Wrox
 
Join Date: Dec 2005
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





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 30th, 2007 12:21 AM
Online Payment eapsokha Classic ASP Professional 3 August 31st, 2004 12:42 AM





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