File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "php database addition problem" Watch "php database addition problem" New topic

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
I agree. Here's the link:
subject: php database addition problem
It's not a secret anymore!