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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   993 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?