WEB (Easy enough) What is the right code

Discussion in 'OT Technology' started by basketmen, Jun 26, 2009.

  1. basketmen

    basketmen New Member

    Joined:
    Jan 31, 2007
    Messages:
    119
    Likes Received:
    0
    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?
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    Try this:
    Code:
    $this->types = array(
    	'ONE' => 'First',
    	'TWO' => 'Second',
    	'THR' => tep_get_member_name($seller_member_id),
    	'FOU' => 'Fourth')
    );
    
     
  3. basketmen

    basketmen New Member

    Joined:
    Jan 31, 2007
    Messages:
    119
    Likes Received:
    0
    hmm its not working, but i think its almost working

    is there any code mate?
     
  4. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    How are you accessing the value? It would have to be something like:

    Code:
    <?php print $types['THR']; ?>
    
    If not, how is tep_get_member_name() returning the value?
     

Share This Page