Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I am installing the get_1_free_1.2.zip mod but when I try to install the QSL for this mod I get the following message:

 

SQL query:

 

CREATE TABLE `get_1_free` (

 

`get_1_free_id` int( 11 ) NOT NULL AUTO_INCREMENT ,

`products_id` int( 11 ) NOT NULL default '0',

`products_qualify_quantity` int( 11 ) NOT NULL default '0',

`products_multiple` int( 11 ) NOT NULL default '0',

`products_free_id` int( 11 ) NOT NULL default '0',

`products_free_quantity` int( 11 ) NOT NULL default '0',

`get_1_free_date_added` datetime default NULL ,

`get_1_free_last_modified` datetime default NULL ,

`get_1_free_expires_date` datetime default NULL ,

`date_status_change` datetime default NULL ,

`status` int( 1 ) NOT NULL default '1',

PRIMARY KEY ( `get_1_free_id` )

) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =1

MySQL said:

 

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 14

 

 

Can someone help. Am I loading it to the wrong place to create the file or is there an error in the SQL file. Or maybe I have missed a set.

Site is underconstruction I am always looking for good advice on how to improve my site fill free to comment.

Thanks! ATise

  • 2 weeks later...
Posted

try this

 

CREATE TABLE `get_1_free` (
 `get_1_free_id` int(11) NOT NULL auto_increment,
 `products_id` int(11) NOT NULL default '0',
 `products_qualify_quantity` int(11) NOT NULL default '0',
 `products_multiple` int(11) NOT NULL default '0',
 `products_free_id` int(11) NOT NULL default '0',
 `products_free_quantity` int(11) NOT NULL default '0',
 `get_1_free_date_added` datetime default NULL,
 `get_1_free_last_modified` datetime default NULL,
 `get_1_free_expires_date` datetime default NULL,
 `date_status_change` datetime default NULL,
 `status` int(1) NOT NULL default '1',
 PRIMARY KEY  (`get_1_free_id`)
) TYPE=MyISAM AUTO_INCREMENT=1;

-Dave

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