(Easy enough) What is the right code

Discussion in 'PHP' started by basketmen, Jun 25, 2009.

  1. #1
    i have 2 php code




    and








    i want the Third text in red in first code is changed to second code











    i had try these but still not working












    please help guys what is the right code?
     
    basketmen, Jun 25, 2009 IP
  2. Wrighty

    Wrighty Peon

    Messages:
    199
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried:

    $this->types = array('ONE' => 'First',
    'TWO' => 'Second',
    'THR' => tep_get_member_name($seller_member_id),
    'FOU' => 'Fourth');
    Code (markup):
     
    Wrighty, Jun 25, 2009 IP
  3. basketmen

    basketmen Well-Known Member

    Messages:
    837
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #3
    hmm its not working, but i think its almost working



    is there any code mate?
     
    basketmen, Jun 25, 2009 IP
  4. Wrighty

    Wrighty Peon

    Messages:
    199
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this:

    $this->types = array('ONE' => 'First',
    'TWO' => 'Second',
    'THR' => '',
    'FOU' => 'Fourth');
    $this->types['THR'] = tep_get_member_name($seller_member_id);
    
    Code (markup):

    I think that's how it's done! :)
     
    Wrighty, Jun 25, 2009 IP