PHP help

Out of context: Reply #8

  • Started
  • Last post
  • 13 Responses
  • MrDaro0

    Not working still

    If i use acescence's code
    $usercategories = explode(',',$usercategories);
    if (in_category ($usercategories) { ...my loop... }

    and I echo $usercategories i get: Array instead of the list of numbers.
    I'm guessing it has to do with the fact that the inputted text is not sorrounded by quotes. Also, what if the user enters only one number, will the explode method still work?

View thread