Jump to content

adding include();


brown2005

Recommended Posts

i have the table:-

echo"<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo"<tr>
<td colspan='5'>1</td>
</tr>";
echo"<tr>
<td colspan='5'>5</td>
</tr>";
echo"<tr>
<td colspan='5'>5</td>
</tr> ";
echo"<tr>
<td width='10'>&nbsp;</td>
<td width='250' valign='top'>2</td>
<td width='10'>&nbsp;</td>
<td width='720' valign='top'>3</td>
<td width='10'>&nbsp;</td>
</tr>";
echo"<tr>
<td colspan='5'>1</td>
</tr> ";
echo"</table>";


how can i put include('g.php');

where the 1 is....
Link to comment
https://forums.phpfreaks.com/topic/5682-adding-include/
Share on other sites

[!--quoteo(post=357913:date=Mar 24 2006, 12:56 PM:name=brown2005)--][div class=\'quotetop\']QUOTE(brown2005 @ Mar 24 2006, 12:56 PM) [snapback]357913[/snapback][/div][div class=\'quotemain\'][!--quotec--]
but i have already got the <?php ?> tags?
[/quote]


ahh my bad. sorry, thought it was html then noticed your quotes. just break up the echo:

[code]
echo"<tr>
<td colspan='5'>";

include('g.php');

echo "</td>
</tr>";
[/code]
Link to comment
https://forums.phpfreaks.com/topic/5682-adding-include/#findComment-20254
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.