acepsdr Posted January 22, 2007 Share Posted January 22, 2007 I try to change a litle admin page in the "categories.php". If selected code, I want save product to different table as according to selected variable content. example: .... $A=1; .... switch $A { case 1: $tbl="_IB"; break; case 2: $tbl="_IC"; break; default: $tbl=""; break; } save TABLE_PRODUCTS to TABLE_PRODUCTS . $tbl save TABLE_PRODUCTS_DESCRIPTION to TABLE_PRODUCTS_DESCRIPTION . $tbl save TABLE_PRODUCTS_TO_CATEGORIES to TABLE_PRODUCTS_TO_CATEGORIES . $tbl I Finished change and save data to thats all tabel is success. but if I select "Edit" Command, data for TABLE_PRODUCTS_DESCRIPTION . $tbl not show in textbox or dataarea. Please Help Me ! Notes: if you wont see my categories.php in the admin directories, I can send to you this page. Thanks Before, Acep Sudrazat Acep Sudrazat Link to comment Share on other sites More sharing options...
acepsdr Posted January 23, 2007 Author Share Posted January 23, 2007 I try to change a litle admin page in the "categories.php". If selected code, I want save product to different table as according to selected variable content. example: .... $A=1; .... switch $A { case 1: $tbl="_IB"; break; case 2: $tbl="_IC"; break; default: $tbl=""; break; } save TABLE_PRODUCTS to TABLE_PRODUCTS . $tbl save TABLE_PRODUCTS_DESCRIPTION to TABLE_PRODUCTS_DESCRIPTION . $tbl save TABLE_PRODUCTS_TO_CATEGORIES to TABLE_PRODUCTS_TO_CATEGORIES . $tbl I Finished change and save data to thats all tabel is success. but if I select "Edit" Command, data for TABLE_PRODUCTS_DESCRIPTION . $tbl not show in textbox or dataarea. Please Help Me ! Notes: if you wont see my categories.php in the admin directories, I can send to you this page. Thanks Before, Acep Sudrazat Acep Sudrazat Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.