We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11887
    • 34 Posts
    Post deleted.

    I made a typo in my code, so it won’t help anyone!

    Thanks sotwell for confirming that it was me going silly and indeed not a problem with the given snippet... smiley
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I’ve never had that not work. Can you post the actual field in question?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 11887
        • 34 Posts
        Thanks for taking the time to respond.

        I was struggling with this for ages. Then realised it was a typo I had made.

        *must type code out from scratch when hitting such problems instead of repeatedly copy-pasting my typos!*
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          glad you solved your problem; I do that all the time.
          if(issset($blah)) {
             // insert values into database
             ...
          }

          doesn’t ever get anything into the database, and I just recently spent two days trying to figure out why my insert query wasn’t working rolleyes rolleyes
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org