osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Create database table phpAdmin

This is a discussion on Create database table phpAdmin within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi, Please forgive me if this information is elsewhere, I've been searching but haven't found any answers. I'...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 03-29-2008, 05:30 AM
New Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Detritus is on a distinguished road
Default Create database table phpAdmin

Hi,

Please forgive me if this information is elsewhere, I've been searching but haven't found any answers.

I've just instaled the Featured Products contribution and need to create a database table in phpAdmin.

This is the info I have:

create table featured (
featured_id int(11) not null auto_increment,
products_id int(11) default '0' not null ,
featured_date_added datetime ,
featured_last_modified datetime ,
expires_date datetime ,
date_status_change datetime ,
status int(1) default '1' ,
PRIMARY KEY (featured_id)
);

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('39','Destacats', 'Mostrar Productes Destacats', '339', '1'
);

INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Mostrar Productes Destacats', 'FEATURED_PRODUCTS_DISPLAY', 'true', 'Marcar Verdader (true) o Fals (false) per activar el mòdul de Productes Destacats.', '39', '1', now(), now()
);

INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Número màxim de Productes Destacats', 'MAX_DISPLAY_FEATURED_PRODUCTS', '6', 'Aquest es el número màxim de productes a mostrar en la portada.', '39', '2', now(), now()
);



I have no idea how to do this and am afraid to start experimenting at this point. Any help, greatly appreciated!

Last edited by Detritus; 03-29-2008 at 05:44 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-29-2008, 06:12 AM
New Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Detritus is on a distinguished road
Default Re: Create database table phpAdmin

So simple! I figured it out and for those clueless newbies like me, simply import the text file directly usning phpAdmin and it updates the database automatically.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-04-2008, 10:53 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Talking Re: Create database table phpAdmin

or if using phpmyadmin,

1. click database name to modify on left column
2. click the "SQL" tab
3. paste the query into the "Run SQL Query/Queries on database field"
4. Click "Go"



For step 3 above the query would be the section you psated here:

Code:
 create table featured (
  featured_id int(11) not null auto_increment,
  products_id int(11) default '0' not null ,
  featured_date_added datetime ,
  featured_last_modified datetime ,
  expires_date datetime ,
  date_status_change datetime ,
  status int(1) default '1' ,
  PRIMARY KEY (featured_id)
);
 
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('39','Destacats', 'Mostrar Productes Destacats', '339', '1'
);
 
INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Mostrar Productes Destacats', 'FEATURED_PRODUCTS_DISPLAY', 'true', 'Marcar Verdader (true) o Fals (false) per activar el mòdul de Productes Destacats.', '39', '1', now(), now()
);
 
INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Número màxim de Productes Destacats', 'MAX_DISPLAY_FEATURED_PRODUCTS', '6', 'Aquest es el número màxim de productes a mostrar en la portada.', '39', '2', now(), now()
);






Hope this helps,
__________________
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Quantity Table jtcreate osCMax v2 Customization/Mods 1 02-28-2007 02:27 PM
table alignment bibleman osCMax v2 Customization/Mods 5 07-30-2005 12:10 PM
table file flexx osCommerce 2.2 Modification Help 1 05-19-2005 05:15 AM
Table size? keithxtreme osCommerce 2.2 Modification Help 2 01-18-2004 02:55 PM
Add new fields/table to product table Anonymous osCommerce 2.2 Modification Help 0 10-21-2002 04:23 AM


All times are GMT -8. The time now is 07:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax