Welcome Guest, Not a member yet? Register   Sign In
passing query results from view page to controller.
#2

[eluser]jprateragg[/eluser]
If you want to pass the query results of your search to the anchor function, you'll have to convert the results to a string, then pass the string to the anchor function.

Code:
$s = '';
foreach($data as $key => $value)
{
    //your code that formats/displays the search results
    $s .= 'a[]='. $value->field1 .'&b[]='. $value->field2 .'&c[]='. $value->field3;
}

This will convert your results into a string and allow you to pass the results to another page. However, it may be easier to create a private function that performs the search, pass the search parameters to your anchor function, then simply perform a new search on the new page using the private search function.


Messages In This Thread
passing query results from view page to controller. - by El Forum - 01-03-2013, 12:22 PM
passing query results from view page to controller. - by El Forum - 01-03-2013, 07:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB