Jump to content


Photo

adding include();


  • Please log in to reply
3 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 24 March 2006 - 12:48 PM

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....

#2 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 24 March 2006 - 12:51 PM


<td colspan='5'><?php include('g.php'); ?></td>

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 24 March 2006 - 12:56 PM

but i have already got the <?php ?> tags?

#4 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 24 March 2006 - 01:00 PM

[!--quoteo(post=357913:date=Mar 24 2006, 12:56 PM:name=brown2005)--][div class=\'quotetop\']QUOTE(brown2005 @ Mar 24 2006, 12:56 PM) View Post[/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:

echo"<tr>
<td colspan='5'>";

include('g.php');

echo "</td>
</tr>";

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users