how do you create foreign key constraints in mySQL? Or Close to it?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Powell

    how do you create foreign key constraints in mySQL? Or Close to it?

    create table if not exists nnet_produkt_va regruppe (
    nnet_produkt_va regruppe_id int not null auto_increment,
    primary key(nnet_produk t_varegruppe_id ),
    nnet_produkt_va regruppe_navn varchar(255) not null
    );


    create table if not exists nnet_produkt_fa rge (
    nnet_produkt_fa rge_id int not null auto_increment,
    primary key(nnet_produk t_farge_id),
    nnet_produkt_fa rge_code varchar(5) not null,
    nnet_produkt_fa rge_navn varchar(255) not null
    );

    alter table nnet_produkt_fa rge add index
    ix_nnet_produkt _farge_code(nne t_produkt_farge .nnet_produkt_f arge_code);

    create table if not exists nnet_produkt_st orrelse (
    nnet_produkt_st orrelse_id int not null auto_increment,
    primary key(nnet_produk t_storrelse_id) ,
    nnet_produkt_st orrelse_navn varchar(255) not null
    );

    create table if not exists nnet_produkt (
    nnet_produkt_id int not null auto_increment,
    primary key(nnet_produk t_id),
    nnet_produkt_va renr varchar(50) not null,
    nnet_produkt_na vn varchar(255) not null,
    nnet_produkt_fa rge_code varchar(5),
    nnet_produkt_st orrelse_id int default 0,
    nnet_produkt_kv alitet_id int default 0,
    nnet_produkt_kr age varchar(255),
    nnet_produkt_in npris decimal(6,2) not null,
    nnet_produkt_ut pris decimal(6,2) not null,
    nnet_produkt_ne tto decimal(6,2) not null,
    nnet_produkt_fo rhandler_rabatt decimal(6,2) not null,
    nnet_produkt_bo nus decimal(6,2) default 0.00,
    nnet_produkt_to ppbonus decimal(6,2) default 0.00,
    nnet_produkt_bt o decimal(6,2) default 0.00,
    nnet_produkt_qu antity int default 0
    );

    alter table nnet_produkt add index
    ix_nnet_produkt _varenr(nnet_pr odukt_varenr);
    alter table nnet_produkt add index ix_nnet_produkt _navn(nnet_prod ukt_navn);
    alter table nnet_produkt add index
    ix_nnet_produkt _fargecode(nnet _produkt.nnet_p rodukt_farge_co de);
    alter table nnet_produkt add index
    ix_nnet_produkt _storrelse_id(n net_produkt_sto rrelse_id);
    alter table nnet_produkt add index
    ix_nnet_produkt _innpris(nnet_p rodukt_innpris) ;
    alter table nnet_produkt add index
    ix_nnet_produkt _utpris(nnet_pr odukt_utpris);
    alter table nnet_produkt add index
    ix_nnet_produkt _netto(nnet_pro dukt_netto);
    alter table nnet_produkt add index
    ix_nnet_produkt _forhandler_rab att(nnet_produk t_forhandler_ra batt);
    alter table nnet_produkt add index
    ix_nnet_produkt _bonus(nnet_pro dukt_bonus);
    alter table nnet_produkt add index
    ix_nnet_produkt _toppbonus(nnet _produkt_toppbo nus);
    alter table nnet_produkt add index ix_nnet_produkt _bto(nnet_produ kt_bto);
    alter table nnet_produkt add index
    ix_nnet_produkt _quantity(nnet_ produkt_quantit y);


    I cannot create the indices I need considering the schema structure I am
    listing. How on earth do I create something like a foreign key constraints
    if it doesn't let you?

    Phil


  • point

    #2
    Re: how do you create foreign key constraints in mySQL? Or Close to it?

    Hm...

    First thought...If i understood right...

    Try using INNODB type of table in MySQL.....

    hope this helps.....


    "Phil Powell" <soazine@erols. com> wrote in message
    news:pdy7b.1469 66$xf.64452@lak eread04...[color=blue]
    > create table if not exists nnet_produkt_va regruppe (
    > nnet_produkt_va regruppe_id int not null auto_increment,
    > primary key(nnet_produk t_varegruppe_id ),
    > nnet_produkt_va regruppe_navn varchar(255) not null
    > );
    >
    >
    > create table if not exists nnet_produkt_fa rge (
    > nnet_produkt_fa rge_id int not null auto_increment,
    > primary key(nnet_produk t_farge_id),
    > nnet_produkt_fa rge_code varchar(5) not null,
    > nnet_produkt_fa rge_navn varchar(255) not null
    > );
    >
    > alter table nnet_produkt_fa rge add index
    > ix_nnet_produkt _farge_code(nne t_produkt_farge .nnet_produkt_f arge_code);
    >
    > create table if not exists nnet_produkt_st orrelse (
    > nnet_produkt_st orrelse_id int not null auto_increment,
    > primary key(nnet_produk t_storrelse_id) ,
    > nnet_produkt_st orrelse_navn varchar(255) not null
    > );
    >
    > create table if not exists nnet_produkt (
    > nnet_produkt_id int not null auto_increment,
    > primary key(nnet_produk t_id),
    > nnet_produkt_va renr varchar(50) not null,
    > nnet_produkt_na vn varchar(255) not null,
    > nnet_produkt_fa rge_code varchar(5),
    > nnet_produkt_st orrelse_id int default 0,
    > nnet_produkt_kv alitet_id int default 0,
    > nnet_produkt_kr age varchar(255),
    > nnet_produkt_in npris decimal(6,2) not null,
    > nnet_produkt_ut pris decimal(6,2) not null,
    > nnet_produkt_ne tto decimal(6,2) not null,
    > nnet_produkt_fo rhandler_rabatt decimal(6,2) not null,
    > nnet_produkt_bo nus decimal(6,2) default 0.00,
    > nnet_produkt_to ppbonus decimal(6,2) default 0.00,
    > nnet_produkt_bt o decimal(6,2) default 0.00,
    > nnet_produkt_qu antity int default 0
    > );
    >
    > alter table nnet_produkt add index
    > ix_nnet_produkt _varenr(nnet_pr odukt_varenr);
    > alter table nnet_produkt add index[/color]
    ix_nnet_produkt _navn(nnet_prod ukt_navn);[color=blue]
    > alter table nnet_produkt add index
    > ix_nnet_produkt _fargecode(nnet _produkt.nnet_p rodukt_farge_co de);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _storrelse_id(n net_produkt_sto rrelse_id);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _innpris(nnet_p rodukt_innpris) ;
    > alter table nnet_produkt add index
    > ix_nnet_produkt _utpris(nnet_pr odukt_utpris);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _netto(nnet_pro dukt_netto);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _forhandler_rab att(nnet_produk t_forhandler_ra batt);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _bonus(nnet_pro dukt_bonus);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _toppbonus(nnet _produkt_toppbo nus);
    > alter table nnet_produkt add index ix_nnet_produkt _bto(nnet_produ kt_bto);
    > alter table nnet_produkt add index
    > ix_nnet_produkt _quantity(nnet_ produkt_quantit y);
    >
    >
    > I cannot create the indices I need considering the schema structure I am
    > listing. How on earth do I create something like a foreign key[/color]
    constraints[color=blue]
    > if it doesn't let you?
    >
    > Phil
    >
    >[/color]



    Comment

    • Ygor

      #3
      Re: how do you create foreign key constraints in mySQL? Or Close to it?

      wish I knew the answer to this one...
      I believe foreign key constriants work with innodb tables but myisam tables
      are the default.
      I'm working on a project in which I really need to enforce referential
      integrity but I'm not sure how to assault the learning curve on the innodb
      setup, if innodb support is even possible at all through my web/database
      hosting service.
      r




      "Phil Powell" <soazine@erols. com> wrote in message
      news:pdy7b.1469 66$xf.64452@lak eread04...[color=blue]
      > create table if not exists nnet_produkt_va regruppe (
      > nnet_produkt_va regruppe_id int not null auto_increment,
      > primary key(nnet_produk t_varegruppe_id ),
      > nnet_produkt_va regruppe_navn varchar(255) not null
      > );
      >
      >
      > create table if not exists nnet_produkt_fa rge (
      > nnet_produkt_fa rge_id int not null auto_increment,
      > primary key(nnet_produk t_farge_id),
      > nnet_produkt_fa rge_code varchar(5) not null,
      > nnet_produkt_fa rge_navn varchar(255) not null
      > );
      >
      > alter table nnet_produkt_fa rge add index
      > ix_nnet_produkt _farge_code(nne t_produkt_farge .nnet_produkt_f arge_code);
      >
      > create table if not exists nnet_produkt_st orrelse (
      > nnet_produkt_st orrelse_id int not null auto_increment,
      > primary key(nnet_produk t_storrelse_id) ,
      > nnet_produkt_st orrelse_navn varchar(255) not null
      > );
      >
      > create table if not exists nnet_produkt (
      > nnet_produkt_id int not null auto_increment,
      > primary key(nnet_produk t_id),
      > nnet_produkt_va renr varchar(50) not null,
      > nnet_produkt_na vn varchar(255) not null,
      > nnet_produkt_fa rge_code varchar(5),
      > nnet_produkt_st orrelse_id int default 0,
      > nnet_produkt_kv alitet_id int default 0,
      > nnet_produkt_kr age varchar(255),
      > nnet_produkt_in npris decimal(6,2) not null,
      > nnet_produkt_ut pris decimal(6,2) not null,
      > nnet_produkt_ne tto decimal(6,2) not null,
      > nnet_produkt_fo rhandler_rabatt decimal(6,2) not null,
      > nnet_produkt_bo nus decimal(6,2) default 0.00,
      > nnet_produkt_to ppbonus decimal(6,2) default 0.00,
      > nnet_produkt_bt o decimal(6,2) default 0.00,
      > nnet_produkt_qu antity int default 0
      > );
      >
      > alter table nnet_produkt add index
      > ix_nnet_produkt _varenr(nnet_pr odukt_varenr);
      > alter table nnet_produkt add index[/color]
      ix_nnet_produkt _navn(nnet_prod ukt_navn);[color=blue]
      > alter table nnet_produkt add index
      > ix_nnet_produkt _fargecode(nnet _produkt.nnet_p rodukt_farge_co de);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _storrelse_id(n net_produkt_sto rrelse_id);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _innpris(nnet_p rodukt_innpris) ;
      > alter table nnet_produkt add index
      > ix_nnet_produkt _utpris(nnet_pr odukt_utpris);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _netto(nnet_pro dukt_netto);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _forhandler_rab att(nnet_produk t_forhandler_ra batt);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _bonus(nnet_pro dukt_bonus);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _toppbonus(nnet _produkt_toppbo nus);
      > alter table nnet_produkt add index ix_nnet_produkt _bto(nnet_produ kt_bto);
      > alter table nnet_produkt add index
      > ix_nnet_produkt _quantity(nnet_ produkt_quantit y);
      >
      >
      > I cannot create the indices I need considering the schema structure I am
      > listing. How on earth do I create something like a foreign key[/color]
      constraints[color=blue]
      > if it doesn't let you?
      >
      > Phil
      >
      >[/color]


      Comment

      • r

        #4
        Re: how do you create foreign key constraints in mySQL? Or Close to it?

        The recent 4.xx release of mysql supports fkey and ref integrity from within
        innodb tables which are natively supported (no special installatin stuff
        necessary). Here's an example of a schema I'm working on for swim meet
        volunteers. Note that once workers exist for a particular timeslot, the
        slot cannot be deleted (leaving orphans) nor can workers be assigned to
        nonexistant slots.
        referential integrity.

        CREATE TABLE IF NOT EXISTS Slots_HeatSheet Workers(
        HS_ID SMALLINT UNSIGNED NOT NULL,
        HS_Date DATE NOT NULL,
        HS_TimeStart VARCHAR(8) NOT NULL,
        HS_TimeEnd VARCHAR(8) NOT NULL,
        HS_Workers_Need ed TINYINT UNSIGNED,
        PRIMARY KEY(HS_ID)
        ) TYPE=INNODB;

        CREATE TABLE IF NOT EXISTS Workers_HeatShe et(
        HS_ID SMALLINT UNSIGNED,
        INDEX WHS_H (HS_ID),
        FOREIGN KEY (HS_ID) REFERENCES Slots_HeatSheet Workers(HS_ID)
        ON DELETE RESTRICT,
        WHS_ID SMALLINT UNSIGNED AUTO_INCREMENT,
        NameFirst VARCHAR(255) NOT NULL,
        NameLast VARCHAR(255) NOT NULL,
        EMail VARCHAR(255) NOT NULL,
        PRIMARY KEY(WHS_ID)
        ) TYPE=INNODB;




















        "Ygor" <someone@anywhe re.com> wrote in message
        news:TuKcnXCktJ cKHfuiXTWJkQ@co mcast.com...[color=blue]
        > wish I knew the answer to this one...
        > I believe foreign key constriants work with innodb tables but myisam[/color]
        tables[color=blue]
        > are the default.
        > I'm working on a project in which I really need to enforce referential
        > integrity but I'm not sure how to assault the learning curve on the innodb
        > setup, if innodb support is even possible at all through my web/database
        > hosting service.
        > r
        >
        >
        >
        >
        > "Phil Powell" <soazine@erols. com> wrote in message
        > news:pdy7b.1469 66$xf.64452@lak eread04...[color=green]
        > > create table if not exists nnet_produkt_va regruppe (
        > > nnet_produkt_va regruppe_id int not null auto_increment,
        > > primary key(nnet_produk t_varegruppe_id ),
        > > nnet_produkt_va regruppe_navn varchar(255) not null
        > > );
        > >
        > >
        > > create table if not exists nnet_produkt_fa rge (
        > > nnet_produkt_fa rge_id int not null auto_increment,
        > > primary key(nnet_produk t_farge_id),
        > > nnet_produkt_fa rge_code varchar(5) not null,
        > > nnet_produkt_fa rge_navn varchar(255) not null
        > > );
        > >
        > > alter table nnet_produkt_fa rge add index
        > > ix_nnet_produkt _farge_code(nne t_produkt_farge .nnet_produkt_f arge_code);
        > >
        > > create table if not exists nnet_produkt_st orrelse (
        > > nnet_produkt_st orrelse_id int not null auto_increment,
        > > primary key(nnet_produk t_storrelse_id) ,
        > > nnet_produkt_st orrelse_navn varchar(255) not null
        > > );
        > >
        > > create table if not exists nnet_produkt (
        > > nnet_produkt_id int not null auto_increment,
        > > primary key(nnet_produk t_id),
        > > nnet_produkt_va renr varchar(50) not null,
        > > nnet_produkt_na vn varchar(255) not null,
        > > nnet_produkt_fa rge_code varchar(5),
        > > nnet_produkt_st orrelse_id int default 0,
        > > nnet_produkt_kv alitet_id int default 0,
        > > nnet_produkt_kr age varchar(255),
        > > nnet_produkt_in npris decimal(6,2) not null,
        > > nnet_produkt_ut pris decimal(6,2) not null,
        > > nnet_produkt_ne tto decimal(6,2) not null,
        > > nnet_produkt_fo rhandler_rabatt decimal(6,2) not null,
        > > nnet_produkt_bo nus decimal(6,2) default 0.00,
        > > nnet_produkt_to ppbonus decimal(6,2) default 0.00,
        > > nnet_produkt_bt o decimal(6,2) default 0.00,
        > > nnet_produkt_qu antity int default 0
        > > );
        > >
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _varenr(nnet_pr odukt_varenr);
        > > alter table nnet_produkt add index[/color]
        > ix_nnet_produkt _navn(nnet_prod ukt_navn);[color=green]
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _fargecode(nnet _produkt.nnet_p rodukt_farge_co de);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _storrelse_id(n net_produkt_sto rrelse_id);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _innpris(nnet_p rodukt_innpris) ;
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _utpris(nnet_pr odukt_utpris);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _netto(nnet_pro dukt_netto);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _forhandler_rab att(nnet_produk t_forhandler_ra batt);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _bonus(nnet_pro dukt_bonus);
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _toppbonus(nnet _produkt_toppbo nus);
        > > alter table nnet_produkt add index[/color][/color]
        ix_nnet_produkt _bto(nnet_produ kt_bto);[color=blue][color=green]
        > > alter table nnet_produkt add index
        > > ix_nnet_produkt _quantity(nnet_ produkt_quantit y);
        > >
        > >
        > > I cannot create the indices I need considering the schema structure I am
        > > listing. How on earth do I create something like a foreign key[/color]
        > constraints[color=green]
        > > if it doesn't let you?
        > >
        > > Phil
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Savut

          #5
          Re: how do you create foreign key constraints in mySQL? Or Close to it?

          Change table type from MyISAM to InnoDB to have more feature, like foreign
          key

          Savut

          "r" <noone@nowhere. com> wrote in message
          news:w8adnQEBiJ LOvOndRVn-ig@comcast.com. ..[color=blue]
          > The recent 4.xx release of mysql supports fkey and ref integrity from
          > within
          > innodb tables which are natively supported (no special installatin stuff
          > necessary). Here's an example of a schema I'm working on for swim meet
          > volunteers. Note that once workers exist for a particular timeslot, the
          > slot cannot be deleted (leaving orphans) nor can workers be assigned to
          > nonexistant slots.
          > referential integrity.
          >
          > CREATE TABLE IF NOT EXISTS Slots_HeatSheet Workers(
          > HS_ID SMALLINT UNSIGNED NOT NULL,
          > HS_Date DATE NOT NULL,
          > HS_TimeStart VARCHAR(8) NOT NULL,
          > HS_TimeEnd VARCHAR(8) NOT NULL,
          > HS_Workers_Need ed TINYINT UNSIGNED,
          > PRIMARY KEY(HS_ID)
          > ) TYPE=INNODB;
          >
          > CREATE TABLE IF NOT EXISTS Workers_HeatShe et(
          > HS_ID SMALLINT UNSIGNED,
          > INDEX WHS_H (HS_ID),
          > FOREIGN KEY (HS_ID) REFERENCES Slots_HeatSheet Workers(HS_ID)
          > ON DELETE RESTRICT,
          > WHS_ID SMALLINT UNSIGNED AUTO_INCREMENT,
          > NameFirst VARCHAR(255) NOT NULL,
          > NameLast VARCHAR(255) NOT NULL,
          > EMail VARCHAR(255) NOT NULL,
          > PRIMARY KEY(WHS_ID)
          > ) TYPE=INNODB;
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          > "Ygor" <someone@anywhe re.com> wrote in message
          > news:TuKcnXCktJ cKHfuiXTWJkQ@co mcast.com...[color=green]
          >> wish I knew the answer to this one...
          >> I believe foreign key constriants work with innodb tables but myisam[/color]
          > tables[color=green]
          >> are the default.
          >> I'm working on a project in which I really need to enforce referential
          >> integrity but I'm not sure how to assault the learning curve on the
          >> innodb
          >> setup, if innodb support is even possible at all through my web/database
          >> hosting service.
          >> r
          >>
          >>
          >>
          >>
          >> "Phil Powell" <soazine@erols. com> wrote in message
          >> news:pdy7b.1469 66$xf.64452@lak eread04...[color=darkred]
          >> > create table if not exists nnet_produkt_va regruppe (
          >> > nnet_produkt_va regruppe_id int not null auto_increment,
          >> > primary key(nnet_produk t_varegruppe_id ),
          >> > nnet_produkt_va regruppe_navn varchar(255) not null
          >> > );
          >> >
          >> >
          >> > create table if not exists nnet_produkt_fa rge (
          >> > nnet_produkt_fa rge_id int not null auto_increment,
          >> > primary key(nnet_produk t_farge_id),
          >> > nnet_produkt_fa rge_code varchar(5) not null,
          >> > nnet_produkt_fa rge_navn varchar(255) not null
          >> > );
          >> >
          >> > alter table nnet_produkt_fa rge add index
          >> > ix_nnet_produkt _farge_code(nne t_produkt_farge .nnet_produkt_f arge_code);
          >> >
          >> > create table if not exists nnet_produkt_st orrelse (
          >> > nnet_produkt_st orrelse_id int not null auto_increment,
          >> > primary key(nnet_produk t_storrelse_id) ,
          >> > nnet_produkt_st orrelse_navn varchar(255) not null
          >> > );
          >> >
          >> > create table if not exists nnet_produkt (
          >> > nnet_produkt_id int not null auto_increment,
          >> > primary key(nnet_produk t_id),
          >> > nnet_produkt_va renr varchar(50) not null,
          >> > nnet_produkt_na vn varchar(255) not null,
          >> > nnet_produkt_fa rge_code varchar(5),
          >> > nnet_produkt_st orrelse_id int default 0,
          >> > nnet_produkt_kv alitet_id int default 0,
          >> > nnet_produkt_kr age varchar(255),
          >> > nnet_produkt_in npris decimal(6,2) not null,
          >> > nnet_produkt_ut pris decimal(6,2) not null,
          >> > nnet_produkt_ne tto decimal(6,2) not null,
          >> > nnet_produkt_fo rhandler_rabatt decimal(6,2) not null,
          >> > nnet_produkt_bo nus decimal(6,2) default 0.00,
          >> > nnet_produkt_to ppbonus decimal(6,2) default 0.00,
          >> > nnet_produkt_bt o decimal(6,2) default 0.00,
          >> > nnet_produkt_qu antity int default 0
          >> > );
          >> >
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _varenr(nnet_pr odukt_varenr);
          >> > alter table nnet_produkt add index[/color]
          >> ix_nnet_produkt _navn(nnet_prod ukt_navn);[color=darkred]
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _fargecode(nnet _produkt.nnet_p rodukt_farge_co de);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _storrelse_id(n net_produkt_sto rrelse_id);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _innpris(nnet_p rodukt_innpris) ;
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _utpris(nnet_pr odukt_utpris);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _netto(nnet_pro dukt_netto);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _forhandler_rab att(nnet_produk t_forhandler_ra batt);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _bonus(nnet_pro dukt_bonus);
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _toppbonus(nnet _produkt_toppbo nus);
          >> > alter table nnet_produkt add index[/color][/color]
          > ix_nnet_produkt _bto(nnet_produ kt_bto);[color=green][color=darkred]
          >> > alter table nnet_produkt add index
          >> > ix_nnet_produkt _quantity(nnet_ produkt_quantit y);
          >> >
          >> >
          >> > I cannot create the indices I need considering the schema structure I
          >> > am
          >> > listing. How on earth do I create something like a foreign key[/color]
          >> constraints[color=darkred]
          >> > if it doesn't let you?
          >> >
          >> > Phil
          >> >
          >> >[/color]
          >>
          >>[/color]
          >
          >[/color]

          Comment

          Working...