• dommega

    (@dommega)


    Everytime I try to combine two variables in the foreach() command I get an error. This is what I am trying to do: foreach ($postitle && $pagecontent as $page):

    How do I get it to work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • skippy

    (@skippy)

    what specifically are you trying to accomplish?

    Cypher

    (@cypher)

    This is the official usage of the foreach() command. Is what you are doing even legal?

    http://us3.php.net/foreach

    Regards

    Thread Starter dommega

    (@dommega)

    define legal? funny question. I am trying to adjust the include_page plugin to show the page titles as well.

    Cypher

    (@cypher)

    Legal is a PHP coding sense not Police sense. 🙂

    ColdForged

    (@coldforged)

    Looking at the plugin code, you don’t need to modify the foreach at all, you’ll modify the echo line and you’ll need to modify the SELECT call from the database. To be honest, though, it sounds like you may be over your head here.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘foreach () problem’ is closed to new replies.