Ok guys so I had a module made a few month back and i know find myself having to reinstall the module it is mostly just a case of drag and drop and a "simple" sql query to use in the phpmyadmin area on my host's cpanel. well went to install a few days ago and got an error when i tried to run the code through the phpmyadmin and also the admin page for my zen cart. can anyone help me fix the code so it will generate the relevant database required or at least be able to decode the coders reply to a request for support???
the code is.....
and the coders response to asking what was wrong with the "easy install pack" i created with his list of modified files was.....Code:CREATE TABLE IF NOT EXISTS `zen_xboxcodes` ( `codeid` int(11) NOT NULL auto_increment, `code` varchar(29) NOT NULL, `type` varchar(255) NOT NULL, `order_id` varchar(111) default NULL, `used` enum('YES','NO') NOT NULL default 'NO', `usedby` varchar(111) default NULL, `usedate` datetime NOT NULL, PRIMARY KEY (`codeid`), UNIQUE KEY `code_2` (`code`), KEY `code` (`code`,`type`) )
You did not choose the database to work on.
You have to select the database to run the sql query.



