I need to echo an php include. I have tried the below but neither work?
echo "<td>include'file.php'</td>";
echo "<td><?php include/file.php'?></td>";
Why doesn't this work and how can this be achieved?
You cannot start a new php block inside a php block.
You would probably do something like this:
echo "<td>";
include 'file.php';
echo "</td>";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With