Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    19
    Plugin Contributions
    0

    drop down menu & table joins

    Hello,

    I have a 3 part related question on incorporating a drop down lists from which people who want to be contacted can select their area of interest. Using version 1.3.0

    One
    I’m not sure how to create the drop down list properly:
    I’ve assigned the drop down the name “PULL_DOWN_KW_EVENTS” and the code I am using looks like this and can be viewed here: http://thecompanykw.com/ec/index.php...age=contact_us

    <label class="inputLabel" for="kwevents"><?php echo PULL_DOWN_KW_EVENTS; ?></label>
    <select size="1" name="Event">
    <option selected>Please select a Event of interest</option>
    <option>Workshops</option>
    < >Marathons</option>
    <option>Parties / Night Life</option>
    <option>Concerts</option>
    <option>Premiers / Showcases</option>
    <option>Panel Discussions</option>
    <option>Spa / Resorts</option>
    <option>Group Outings</option>
    <option>Sporting Activities</option>
    </select>

    This code is in my tpl_contact_us_default.php file. Do I need to be using a php drop down list instead? If so, how can that be implemented?

    Two
    The other pages I attempted to modify are header_php.php which from what I understand puts the data in the database, which brings me to joining tables. This is where I need assistance in what code to write and where. This is what I’ve tried, but took it out cause it spoiled the view.

    if($_SESSION['customer_id']) {
    $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id, kw_customer_id, kw_event, kw_product, kw_service, kw_comment
    FROM " . TABLE_CUSTOMERS,TABLE_KW_CUSTOMER_PLUS . "
    WHERE customers_id = :customersID, ";

    How do you bind the variables, how should it look?

    $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');

    Three
    I have created a table called: kw_customer_plus in the database that has a unique field with the keyname: idx_kw_customer_id_customers_id_zen related to customers_id in zen_customers table. Is that all I need here?

    Thanks in advance,

  2. #2
    Join Date
    Mar 2006
    Posts
    19
    Plugin Contributions
    0

    Default please help! pull down options + new data table

    I have not resoived this issue. If anyone can help it would be appreciated.

    Quote Originally Posted by MFP
    Hello,

    I have a 3 part related question on incorporating a drop down lists from which people who want to be contacted can select their area of interest. Using version 1.3.0

    One
    I’m not sure how to create the drop down list properly:
    I’ve assigned the drop down the name “PULL_DOWN_KW_EVENTS” and the code I am using looks like this and can be viewed here: http://thecompanykw.com/ec/index.php...age=contact_us

    <label class="inputLabel" for="kwevents"><?php echo PULL_DOWN_KW_EVENTS; ?></label>
    <select size="1" name="Event">
    <option selected>Please select a Event of interest</option>
    <option>Workshops</option>
    < >Marathons</option>
    <option>Parties / Night Life</option>
    <option>Concerts</option>
    <option>Premiers / Showcases</option>
    <option>Panel Discussions</option>
    <option>Spa / Resorts</option>
    <option>Group Outings</option>
    <option>Sporting Activities</option>
    </select>

    This code is in my tpl_contact_us_default.php file. Do I need to be using a php drop down list instead? If so, how can that be implemented?

    Two
    The other pages I attempted to modify are header_php.php which from what I understand puts the data in the database, which brings me to joining tables. This is where I need assistance in what code to write and where. This is what I’ve tried, but took it out cause it spoiled the view.

    if($_SESSION['customer_id']) {
    $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id, kw_customer_id, kw_event, kw_product, kw_service, kw_comment
    FROM " . TABLE_CUSTOMERS,TABLE_KW_CUSTOMER_PLUS . "
    WHERE customers_id = :customersID, ";

    How do you bind the variables, how should it look?

    $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');

    Three
    I have created a table called: kw_customer_plus in the database that has a unique field with the keyname: idx_kw_customer_id_customers_id_zen related to customers_id in zen_customers table. Is that all I need here?

    Thanks in advance,

 

 

Similar Threads

  1. Remove Languages text , Flag & currency Drop Down Menu
    By flex67 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Nov 2010, 09:35 PM
  2. Lost my admin drop down menu & tables
    By Lyon in forum Basic Configuration
    Replies: 14
    Last Post: 1 Aug 2010, 07:02 PM
  3. How to Move Drop Down Menu & Add to to Cart Box?
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jun 2009, 05:51 PM
  4. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 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