mysql - How to create Category Wise Serial Number in PHP -


how can create category wise serial number. suppose have 3 category a,b & c. has 3 subcategories x,y & z while b has 2 subcategories x,y , c has no subcategory. on submit if have selected , subcategory x generate ax0001 , on selecting b subcategory y by0001 , on selecting c generate c0001. how can generate serial number without checking @ database level duplicacy?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -