Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    67
    Plugin Contributions
    0

    Default Probably an easy one... :)

    Code:
    echo TEXT_PRODUCT_OPTIONS; 
    if  ($options_name[$i] == "test") {
    echo "works";
    } else {
    echo $options_name[$i];
    }
    Why doesn't this work? The output looks like " test " but the character is more than just a blank.

    Thanks!

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

    Default Re: Probably an easy one... :)

    Can we see this happening live? Is it possible that you added a space at the end of the option name when creating it? Not sure if that would cause a mismatch, but it couldn't hurt to check. Maybe you can look straight into the database table to see the value of that field.


    And what "character is more than just a blank"?

 

 

Similar Threads

  1. v151 Need a bit of PHP help (probably very easy!)
    By brightgirl in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 23 Feb 2014, 02:43 AM
  2. Url question (probably very easy)
    By jvanree in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 6 May 2008, 01:56 PM
  3. Probably easy, but im being thick.
    By herghost in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 May 2007, 03:27 AM
  4. Probably an easy question
    By dpowell in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Apr 2007, 09:31 PM
  5. Sub Domain Zencart - Newbie Stuck probably easy fix! :)
    By allusion in forum Installing on a Windows Server
    Replies: 4
    Last Post: 17 Sep 2006, 02:40 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