Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two auto increments on products ID?


Guest

Recommended Posts

Posted

I'm trying to add a catalog via phpmyadmin. I popped the products into the products table, then I realized that the products description table's product_id is also auto-increment. Is there some means of linking tables I don't know about? When you add a product, how do two tables auto-increment independently? Shouldn't the product description table take the id from the products table?

Posted

no not really. two tables don't work together although they both get populated with new products when they are added.

If you are inserting new products using sql then you will need to insert into both tables manually

Santa's little freelancer

Posted

I was wondering why you would want to use phpmyadmin to add products when adding them through the shop admin area takes care of all the "relationships".

 

An even better way is to install the Easy Populate contribution which allows you to upload from a csv file.

 

Sorry if this is teaching you to suck eggs

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
I was wondering why you would want to use phpmyadmin to add products when adding them through the shop admin area takes care of all the "relationships".

 

An even better way is to install the Easy Populate contribution which allows you to upload from a csv file.

 

Sorry if this is teaching you to suck eggs

 

Teaching me to suck eggs? That's the funniest analogy I don't understand. :)

 

I'm over-cautious with contributions by default. I did see that one and I am considering it.

 

I guess I'm just trying to delve into the topics of database normalization and how osCommerce works. I would think that having two auto increments counts on the fact that the two will never be off. If a query fails somewhere along the line or something else happens, the to could be incrementing different values.

 

but thanks. The mention of Easy Populate serves as a reference. Maybe I'll try it.

Archived

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

×
×
  • Create New...