Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » problem to show data to template

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

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

    problem to show data to template Link to this post

    Hi!
    I can't see my data in tempalte..can you help me?

    function Conn()
    {

    global $db_pandora;

    $record=$db_pandora->query('SELECT * FROM mm_service');

    $rec=array();
    $id=array();
    while($rec[]=$record->nextRecord())
    {
    }

    for($i=0; $i<count($rec); $i++)
    {
    $id[$i]= $rec[$i]['id'];

    }

    while($id[]=$record->nextRecord())
    {
    }
    return $this->customise($id);

    }

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: problem to show data to template Link to this post

    I'm not sure what you're trying to do, but in most cases you don't need to do any of this stuff

    697 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.