Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to look for a field value in db base on relatived filed value?

    I forgot such a zencart function, it can look for any field value base on other field value in zencart db. what is it?

    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: how to look for a field value in db base on relatived filed value?

    You could try
    Code:
    $sql_query = "SELECT orders_status_id
                       FROM   " . TABLE_ORDERS_STATUS . "
                       WHERE  orders_status_name = 'Pending'
                       AND language_id='1'";
    
    $sql_result= $db->Execute($sql_query);
    Note that I added the language_id, too, just in case you've got a multilingual store.

  3. #3
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default Re: how to look for a field value in db base on relatived filed value?

    thank you very much

 

 

Similar Threads

  1. v151 Send low stock email based on value in custom minimum field for individual products
    By jpietrowiak in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Aug 2015, 07:12 AM
  2. v150 How would i add upc addon field value to title?
    By shawnhbk in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Apr 2012, 01:19 PM
  3. Mod for value field for Gift Certificates
    By Beez in forum All Other Contributions/Addons
    Replies: 42
    Last Post: 25 Aug 2010, 07:08 PM
  4. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM
  5. Base shipping on separate value
    By esugrue in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Jul 2008, 07:37 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR