Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

link to an other page_results


2 Posts   779 Views


14 July 2009 at 8:58pm Community Member, 192 Posts

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


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?


3 September 2009 at 9:11pm Community Member, 192 Posts

nobody can hel me?is my question clear?