Forum
Fetching content on two different pages
Hi, I have two pages that uses the same method to pull data from the perch database. In r.php and y.php the code looks like:
$linkarray = perch_content_custom('Link Builder', array(
'filter'=>'campaign.url_id',
'match'=>'eq',
'value'=>$uniqueurl,
'skip-template' => 'true',
'raw' => 'true'
));
The code in y.php is identical. For some reason, the content is fetched in r.php but not in y.php. I use the print_r $linkarray function and the array is populated in r.php, but not in y.php. Could you please tell me what I am doing wrong here, and how to fetch the same array in two different php pages? BTW= the query string is grabbed by $uniqueurl is also identical.
Thank you.
Hi again. Solved it by referencing r.php like this: