wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: php database addition problem
 
Similar Threads
difficulty in login in one attempt
i need help on loggin account limit
Javascript and PHP
Using a Variable with AJAX
Whats wrong in this .php file.