Forum Moderators: coopster
The trouble is, everytime i paste the php include into the echo statement, it breaks the code up and wont work.
Here is some of the existing code, and the bit i'm trying to get to work:
echo '
<- some existing code here that works ->
<?php include("./Templates/includes/footernav.php");?>
';
If i upload the php include statement up on a blank html page, it produces the desired footer, so i know that part works. Its just when i paste it into an existing php file it breaks the existing code up.
Please help
Is it because the code snippet i'm using is in an echo ' '; statement?
the trouble is thats where i need it to go, cause the echo contains the <td> cell i need the footernav to be in.
many thanks
echo '<table><tr><td>some info here</td><td>more info here</td></tr></table>';
echo '<table><tr><td>some info here</td><td>';
include("./Templates/includes/footernav.php");
echo '</td></tr></table>';