Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Posts
    19
    Plugin Contributions
    0

    Default Username Variable

    I'm trying to create a query where it will search all orders, and then store it in a count with regards to the username/id.

    I understand PHP to an extent, but i'm trying to work out within zencart what variable the username is stored into, so i can do WHERE='$username'

    Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Username Variable

    $_SESSION['customer_id'] will hold the id of the logged-in customer.

 

 

Similar Threads

  1. v154 Naming a global variable the same as a SESSION, GET or POST variable
    By torvista in forum General Questions
    Replies: 5
    Last Post: 6 Dec 2015, 11:11 AM
  2. v153 Username
    By pageblair in forum General Questions
    Replies: 0
    Last Post: 8 Sep 2014, 11:57 PM
  3. Replies: 8
    Last Post: 10 Jan 2010, 08:04 PM
  4. Username
    By sheldonlg in forum General Questions
    Replies: 7
    Last Post: 2 Dec 2007, 06:00 PM
  5. Variable pricing plus options with variable pricing
    By rbobzin in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 21 Mar 2007, 10:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg