I cant get this syntax to work, already tried modifying it many time.
<?php
echo
"<a href='".include 'go/randomlink.php'."'>".$item['stockid']."</a>";
?>
I cant get this syntax to work, already tried modifying it many time.
<?php
echo
"<a href='".include 'go/randomlink.php'."'>".$item['stockid']."</a>";
?>
For this to work, your other php file must simply echo some string.
randomlink.php:
<?php
echo "What came first the chicken or the egg?";
?>
index.php:
echo "<a href='";
include('go/randomlink.php');
echo "'>" . $item['stockid'] . "</a>";
hope this helps you.