Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

I've tried to install this Contribution, but I'm having a bit of trouble. When listing a new product, I am able to add 3 more photos. However, when I go to Preview it shows only the main photo, and when I click Insert I get this:

 

1054 - Unknown column 'products_image_array' in 'field list'

insert into products (products_quantity, products_model, products_price, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id, products_image, products_image_array, products_date_added) values ('1', '', '110.00', null, '6.54', '1', '0', '0', 'Spurge.JPG', 'a:0:{}', now())

 

[TEP STOP]

 

Where have I gone wrong? And keep in mind that I am a very new newbie.

Thanks,

pete.

Posted

I ran the SQL again, and it had an error:

 

Error

 

SQL query:

 

ALTER TABLE `products` ADD `products_image_array` VARCHAR( 800 ) NULL DEFAULT NULL ;

 

MySQL said: Documentation

#1060 - Duplicate column name 'products_image_array'

 

What does this mean?

Posted
what is confusing you?

 

i'm simply saying, that you might have selected the wrong database to run the sql in.

 

Ok... I'm just not sure how many databases I have. My first experience with one was running a sQL 2 weeks ago.

Posted

go to phpMyAdmin: on the left you can see your database(s)

 

if there is more then one database, select the database which you are using for your shop, and run the sql

Posted
go to phpMyAdmin: on the left you can see your database(s)

 

if there is more then one database, select the database which you are using for your shop, and run the sql

 

Ah - I'm following you. I've gone there to run my SQLs, but have never checked where they were going.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...