Forums

mySQL field=ALL equivalent in WP? (3 posts)

  1. ixwa
    Member
    Posted 11 months ago #

    I have a multi-select form doing its thing, but I want some of the options to be...optional and to return all posts results regardless of that particular field's value.

    Is there an equivalent to mySQL field=ALL?

    I thought maybe leaving it blank would accomplish this, but I'm not sure about the results I'm getting.

  2. vtxyzzy
    Member
    Posted 11 months ago #

    If you can use the 'LIKE' operator rather than just an equals, try using a single percent sign for the value: '%'

    field LIKE '%'

  3. ixwa
    Member
    Posted 11 months ago #

    Hmm, good suggestion; will report back.

Reply

You must log in to post.

About this Topic