Jump to content

adding values


abhinavsingh89

Recommended Posts

guys i hv a table stock which consist of itemid,name, i have another table received which have itemid(foreignkey to stock itemid), qty.. nw in my last module what i have done is i allowed user to enter quantity which will sum up to the previous quantity.. for ex if i had 10 items nd user enter 12 then new amt of items will be 22.... but unfortunately i created a new record for that ... that is a new record will be entered with same itemid and qty 12....i submitted my that module also so cannot make any change in that... now when i apply join it shows redundant entries....now i just want to sum up all the records (i.e. qty) available for particular itemid and print the total qty available.. can anyone suggest a solution to this... thnx in advance...

Link to comment
https://forums.phpfreaks.com/topic/201184-adding-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.