Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error adding stock to products


Guest

Recommended Posts

This is the error:

 

1136 - Column count doesn't match value count at row 1

 

insert into products_stock values (0,83,'1-1',5)

 

[TEP STOP]

 

Can anyone help with this?

 

Im trying to add stock to the sizes of a specific product.

Also i cant seem to delete products either...

Link to comment
Share on other sites

You seem to be using a contribution without naming it, because products_stock is not a default database table. The error message is very specific. The query tries to insert 4 values into the table, but it seems to have more than 4 fields. Try to modify your query like so:

insert into products_stock (id, field1, field2, field3) values (0,83,'1-1',5);

where id and field1, etc are just placeholders for your real table field names.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...