Userid

Discussion in 'Templates customization' started by xe912, Feb 21, 2006.

  1. xe912

    xe912 New Member

    Joined:
    Feb 13, 2006
    Messages:
    15
    Hello,

    i would like to ask, how it is possible to get userID number from database in templates and php script?

    Thank you.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    {$smarty.session._amember_user.member_id}

    PHP:
    <?php
    session_start
    ();
    print 
    $_SESSION['_amember_user']['member_id'];
    ?>

Share This Page