Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » link to an other page_results

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: 738 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    link to an other page_results Link to this post

    Hi!
    I use serchpage to connect to an esternal db and make query. I print a list of data (ex. name, phone,..). Now I need a link in $rec['name'] variable to make an other query that print description about that name in an other page. How can solve this??

    I write here some of my code..

    $record=$db->query(....);

    while ($rec=$record->nextRecord())
    { $array_data .= '$rec['name'].'<br>'; }

    return $this->customise(array('Linkx' => $array_data)->renderWith(array('SearchPage_results', 'Page'));

    can you help me to make link?

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: link to an other page_results Link to this post

    nobody can hel me?is my question clear?

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