PHP help

Out of context: Reply #10

  • Started
  • Last post
  • 13 Responses
  • section_0140

    Generally if statements don't contain multiple values. Unless of course you are doing it like:

    if (value1 && value2 && value3 ) {}

    It seems to me that you should be looping through the $usercategories array and have your other loop nested in that loop. Such as:

    foreach ($usercategoies as $value)
    {
    // other loop here
    }

    Just an idea. It's hard to diagnose with a few lines. Maybe post up the whole script somewhere like snipplr

View thread