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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

link to an other page_results


Go to End


2 Posts   1104 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?