WordPress.org

Support

Support » Themes and Templates » multi-dimensional array in theme

multi-dimensional array in theme

  • I’m trying to build a multi-dimensional array from a database query in a theme page. if I do this: $array[$name]=$value; it works fine,but, as soonas I try this: $array[$name][0]=$value; or $array[$name]=array(0=>$value); it fails. Anyone know why? Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • what does it take to get some help around here?!?

    perhaps not posting duplicate threads, and actually asking a WORDPRESS-related question.

    try a php forum if you can’t wait 12 hours for an answer to your irrelevant question.

    outside of wordpress, in the same website, when I build a test page, the array builds perfectly. this does have to do with wordpress, not php. So, someone who actually knows about this, please help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘multi-dimensional array in theme’ is closed to new replies.
Skip to toolbar