This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes PHP and the fly likes php database addition problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "php database addition problem" Watch "php database addition problem" New topic
Author

php database addition problem

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
good day everyone, Am trying to update my poduct table such that each time
item quantity is added to item total the value keeps up increasing
eg 1+1 =2, 2+3 =5 and so on, but if I try to update the table column(item_total),
the new update always replace the old value instead of increasing it and the error below will
be displayed

"Notice: Undefined index: Radio in C:\test\htdocs\product.php on line 32"

below is my effort so fare, any help please



Unnar Björnsson
Ranch Hand

Joined: Apr 30, 2005
Posts: 164
You mean you want to $_POST['item_quantity'] to be added to item_total in the database? Then change the sql statement to
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: php database addition problem