Results 1 to 3 of 3

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've just instaled ...

      
  1. #1
    New Member
    Join Date
    Mar 2008
    Posts
    7
    Rep Power
    0


    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 06:44 AM.

  2. #2
    New Member
    Join Date
    Mar 2008
    Posts
    7
    Rep Power
    0


    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.

  3. #3
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    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,

Similar Threads

  1. Quantity Table
    By jtcreate in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 02-28-2007, 02:27 PM
  2. table alignment
    By bibleman in forum osCmax v2 Customization/Mods
    Replies: 5
    Last Post: 07-30-2005, 01:10 PM
  3. table file
    By flexx in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-19-2005, 06:15 AM
  4. Table size?
    By keithxtreme in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 01-18-2004, 02:55 PM
  5. Add new fields/table to product table
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-21-2002, 05:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •