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


Reply


2 Posts   822 Views

Avatar
bebabeba

Community Member, 193 Posts

14 July 2009 at 8:58pm

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?

Avatar
bebabeba

Community Member, 193 Posts

3 September 2009 at 9:11pm

nobody can hel me?is my question clear?