WordPress.org

Ready to get started?Download WordPress

Forums

multi-dimensional array in theme (4 posts)

  1. walkacrossfire
    Member
    Posted 6 years ago #

    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!

  2. walkacrossfire
    Member
    Posted 6 years ago #

    what does it take to get some help around here?!?

  3. Ivovic
    Member
    Posted 6 years ago #

    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.

  4. walkacrossfire
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic