Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Save to Different Table on Categories Admin


acepsdr

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...