Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » for cicle problem

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 560 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    for cicle problem Link to this post

    Hi!
    I have a query that look for in my database and show me 35 results. I want print this result in my page inside a div. My problem is create a for cicle that include div and result of query. can you help me please?How silverstripe convert this:

    $array [] //this is the array that include all query result

    for($i=0;$i<count($array); $i++){
    <div>
    print_r($array($i))
    </div>
    }

    560 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.