MyBB Community Forums

Full Version: How to add a new field in a database and display it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For example, if you had a stock count, how would you:

  • Add an additional database field somewhere for the stock levels of different products
  • Have a field in the Admin CP to set the initial stock level
  • Display that stock level from the DB somewhere in the template {$stocklevel1}
  • Have that stock level reduce by one each time a button is clicked
This would be very helpful!