How to access extra fields?

Discussion in 'Customization & add-ons' started by Darcy, Nov 4, 2005.

  1. Darcy

    Darcy New Member

    Joined:
    Oct 4, 2005
    Messages:
    4
    Hi,

    I added some extra fields to the database (phonenumber, company, street2) and need to get the information out to put in an email. This does not seem to be working:

    include('/amember/config.inc.php');

    $au=$_SESSION['_amember_user'];

    $company = $au[company];


    Any suggestions? Does the field have to be created in the "not recommended" SQL format to access it?

    Thanks,
    Darcy
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Just use
    $company = $au[data][company];
  3. Darcy

    Darcy New Member

    Joined:
    Oct 4, 2005
    Messages:
    4
    Thanks Alex

    Of course that worked :)

Share This Page