Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    169
    Plugin Contributions
    0

    Default Retreiving config data

    Currently I'm querying the database to retrieve the admin email address. As in ...

    Code:
    $contactEmail = '';
    $sql = "select configuration_value from " . TABLE_CONFIGURATION. " where configuration_key = 'STORE_OWNER_EMAIL_ADDRESS' limit 1";
    $contact_emails = $db->Execute($sql);
    $contactEmail = $contact_emails->fields['configuration_value'];
    I'm wondering if these config values are already in some PHP array somewhere so I don't have to do an extra query.

    Is there a better way than what I'm doing?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Retreiving config data

    Have a look into the contact us pieces
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v139h Retreiving lost admin passwords
    By thestampnomad in forum General Questions
    Replies: 1
    Last Post: 8 May 2014, 03:51 AM
  2. Replies: 2
    Last Post: 16 Jun 2011, 04:11 PM
  3. Guests retreiving downloads after purchase?
    By kimberlyeddy in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Feb 2011, 09:12 PM
  4. Demo data and live data on same server?
    By NaturalEnquirer in forum General Questions
    Replies: 1
    Last Post: 28 Jan 2009, 01:47 AM
  5. New install no includes/dist-config or admin/dist-config files?
    By retroboutiques in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 7 Dec 2007, 07:54 AM

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