Search code examples
mysqlactiverecordyiiinventory-management

YII Inventory Control system issue


Guys help me to do this. I'm new to YII. I want to display each item branches stock like this.

enter image description here

actual database

enter image description here

What is the best way to do this?


Solution

  • What you are looking for is a cross tab or pivot table. Here is a link: http://www.artfulsoftware.com/infotree/qrytip.php?id=523