Hello,
I have a problem in that I have no clue on how to incorporate an include() statementinside an echo.
The include is:
include $inc . 'link.php';
the echo statement where I want to include it is simliar to this:
echo '<td>' . /* it goes in here */ . '</td>';
Everytime I do this I get PHP errors when accessing the page. My alternative was to define a variable which contained the include statement and then just add the variable in the echo. Like this:
$link = include $inc . 'link.php';
echo '<td>' . $link . '</td>';
However the strange thing is that the included file is parsed on the line that the variable is defined and not where the variable is placed (in the actual file the variable is defined outside the tables so the included content appears not where it should)
How can I solve this?