Guest Posted April 21, 2010 Share Posted April 21, 2010 I deleted orders_products table by mistake. I had the fields written down and tried to reenter them, but nothing is showing when I do the search, does anyone know how to fix this. Help please Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted April 21, 2010 Share Posted April 21, 2010 Run this sql... CREATE TABLE `orders_products` ( `orders_products_id` int(11) NOT NULL auto_increment, `orders_id` int(11) NOT NULL default '0', `products_id` int(11) NOT NULL default '0', `products_model` varchar(12) default NULL, `products_name` varchar(64) NOT NULL, `products_price` decimal(15,4) NOT NULL default '0.0000', `final_price` decimal(15,4) NOT NULL default '0.0000', `products_tax` decimal(7,4) NOT NULL default '0.0000', `products_quantity` int(2) NOT NULL default '0', PRIMARY KEY (`orders_products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; You may need to use a different number for auto_increment Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
chooch Posted April 21, 2010 Share Posted April 21, 2010 For future remember to use your store admin/tools and then back up. You should back up your database every so often in case of hardware failure and you should always back up your database before adding/removing tables. If something goes wrong then at least you can revert to the previous database and your store can operate as before. Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.