[eluser]gazza7364[/eluser]
[quote author="PhilTem" date="1332856181"]Nope, this won't work. It will parse the source code (except for replaced variables $data and stuff).
Have you worked with PHP before? If so, you should know that you have to concatenate the strings for output like so
Code:
$output = "<div>" . echo anchor('photos/edit($data->photo_id'), 'Edit') . "</div>";
[/quote]
Yes I have use php before, I've been messing around with this for a while, when I use your suggestion, which I have already tried I get a blank page. For some reason the coding shows up incorrect in the editor as their a mistake, but not sure where. I have copied your version as is, but still I get a blank page. When I remove this line the page loads :-(