Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help Please

Featured Replies

I have a table in my database similar to the one shown below

 

pcode | cases | packets | order_id|

----------------------------------

F0570 | 2 | 1 | 45671 |

-----------------------------------

F0570 | 1 | 3 | 45672 |

-----------------------------------

F0570 | 4 | 2 | 45673 |

-----------------------------------

 

What i am trying to do is use php/mysql to tell me how many cases and packets there are for each product code. I can obviously see that there are 7 cases and 6 packets ordered for this particular product. But what i am trying to do is transfer this into another table which will produce a picking list (below) but i can't work out how to get the totals for each product. I have tried COUNT and SUM but get really odd results that don't help

 

pcode | cases | packets |

-------------------------

FO570 | 7 | 6 |

-------------------------

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.