Jump to content

Including problem


Shade.Alchemist

Recommended Posts

sorry... :(

<TR>

<TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png"

WIDTH=537 HEIGHT=177 ALT="">

 

<?php include("$id"); ?>

 

</TD>

</TR>

<TR>

<TD COLSPAN=15 background="images/ETv2_40.png"

WIDTH=798 HEIGHT=41 ALT="">

</TD>

</TR>

<TR>

<TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD>

</TR>

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223171
Share on other sites

well you have to set the $id somewhere. give the $id a value so it has something to include.

 

example:

let's say $id is triggered from a link to include about.php

<a href="index.php?id=about">About me</a>

 

now you want to set the value of $id. In this example the value will be "about"

$id = $_GET['id'];

 

now you need to include the about file

include('$id.php');

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223205
Share on other sites

gah, I'm an idiot...

I placed

$id = $_GET['id'];

into lots of random locations in the index.php yet I keep getting this error...

 

Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 160

 

Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 160

 

Warning: main(): Failed opening '$id.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eternalt/public_html/index.php on line 160

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223222
Share on other sites

<HTML>
<HEAD><link href="style2.css" rel="stylesheet" type="text/css">
<TITLE>Eternal Tales</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<div align="center">
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
	<TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_01.png"></a></TD>

	<TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_02.png"></a></TD>

	<TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_03.png"></a></TD>

	<TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT="">
<a href="link"><img src="images/Contactbutton.png"></a></TD>

	<TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png"
	 WIDTH=563 HEIGHT=156 ALT=""></TD>

	<TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>

	<TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a> 

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png"
	 WIDTH=800 HEIGHT=25 ALT="">
<?php

$id = $_GET['id'];

?>


<?php 

include('Edit-WebAff.php'); 

?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png"
	 WIDTH=258 HEIGHT=357 ALT="">

<?php 

include('Edit-Navigation.php'); 

?>

</TD>

	<TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD>

	<TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD>

	<TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD>

	<TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD>

	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD>

</TR>
<TR>
	<TD> <a href="link"><img src="images/ETv2_32.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD> <a href="link"><img src="images/ETv2_36.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

</TR>
<TR>
	<TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png"
	 WIDTH=537 HEIGHT=177 ALT="">

<?php

include('$id.php');

?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=15 background="images/ETv2_40.png"
	 WIDTH=798 HEIGHT=41 ALT="">
	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="footer" background="images/ETv2_42.png"
	 WIDTH=800 HEIGHT=48 ALT="">
<?php 

include('Edit-Footer.php'); 

?>

	</TD>
</TR>
<TR>
	<TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
</div>
</BODY>
</HTML>

 

Yeah, not the best of code...

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223230
Share on other sites

well... the first thing I see is this:

<a href="link">

it should be: (make sure the value is the same as the filename of the file you want to include, without the .php)

<a href="?id=value">

 

then.. there's no need to have the

$id = $_GET['id'];

and

include('$id.php');

in two different locations on the site.

 

<?php
$id = $_GET['id'];
include('$id.php');
?>

 

 


i would have done it a whole different way. I would do it more like this:

<?php
$include = "home.php"
$id = $_GET['id'];
if (isset($id)) { $include = "$id.php"; }
if (!file_exists($include)) { $include = "missing.php"; }
require_once($include);
?>

 

The reason I would do it like that is because it opens some more abilities, to add stuff like:

if ($id == "gallery") { $include = "gallery/$id.php"; }

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223238
Share on other sites

I used

<?php
$include = "home.php"
$id = $_GET['id'];
if (isset($id)) { $include = "$id.php"; }
if (!file_exists($include)) { $include = "missing.php"; }
require_once($include);
?>

 

Although, with

<?php
$id = $_GET['id'];
include('$id.php');
?>

I get this

Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 161

 

Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 161

 

Warning: main(): Failed opening '$id.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eternalt/public_html/index.php on line 161

With line 161 being

include('$id.php')

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223254
Share on other sites

well... i think that might be the problem..

 

you can try something like this:

?id=content&show=crew

 

and then edit the include part to this:

<?php
$include = "home.php"
$id = $_GET['id'];
$show = $_GET['show'];
if (isset($id)) { 
if ($id == "content") { $include = "$id/$show.php"; }
}
if (!file_exists($include)) { $include = "missing.php"; }
require_once($include);
?>

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223268
Share on other sites

damn!! i'm retarded =)

 

change this line:

$include = "home.php"

 

to this:

$include = "home.php";

 

but make sure you have a file named home.php in the same folder as index.php or else you will be a victim of error messages =) since it wont be able to find home.php

 

the home.php dont need to have anything in it.. you just need to have the file there :)

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223281
Share on other sites

You're the retard? that just makes me seem even more retarded :P

 

Anyway, that fixed one of the problems...

Parse error: syntax error, unexpected $end in /home/eternalt/public_html/index.php on line 211

 

With line 211 being the closing line... </html>

PHP is so damn confusing...

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223284
Share on other sites

Here you go...

<HTML>
<HEAD><link href="style2.css" rel="stylesheet" type="text/css">
<TITLE>Eternal Tales</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<div align="center">
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
	<TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="/"><img src="images/ETv2_01.png"></a></TD>

	<TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="http://www.divine-infinity.com/forums/"><img src="images/ETv2_02.png"></a></TD>

	<TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="?id=content/tales.php"><img src="images/ETv2_03.png"></a></TD>

	<TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT="">
<a href="link"><img src="images/Contactbutton.png"></a></TD>

	<TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png"
	 WIDTH=563 HEIGHT=156 ALT=""></TD>

	<TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>

	<TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a> 

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png"
	 WIDTH=800 HEIGHT=25 ALT="">

<?php 

include('Edit-WebAff.php'); 

?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png"
	 WIDTH=258 HEIGHT=357 ALT="">

<?php 

include('Edit-Navigation.php'); 

?>

</TD>

	<TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD>

	<TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD>

	<TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD>

	<TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD>

	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD>

</TR>
<TR>
	<TD> <a href="link"><img src="images/ETv2_32.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD> <a href="link"><img src="images/ETv2_36.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

</TR>
<TR>
	<TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png"
	 WIDTH=537 HEIGHT=177 ALT="">

<?php
$include = "home.php"
$id = $_GET['id'];
if (isset($id)) { $include = "$id.php"; }
if (!file_exists($include)) { $include = "missing.php"; }
require_once($include);
?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=15 background="images/ETv2_40.png"
	 WIDTH=798 HEIGHT=41 ALT="">
	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="footer" background="images/ETv2_42.png"
	 WIDTH=800 HEIGHT=48 ALT="">
<?php 

include('Edit-Footer.php'); 

?>

	</TD>
</TR>
<TR>
	<TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
</div>
</BODY>
</HTML>

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223290
Share on other sites

backup you exsisting index.php and overwrite the original with this code:

<HTML>
<HEAD><link href="style2.css" rel="stylesheet" type="text/css">
<TITLE>Eternal Tales</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<div align="center">
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
	<TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="/"><img src="images/ETv2_01.png"></a></TD>

	<TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="http://www.divine-infinity.com/forums/"><img src="images/ETv2_02.png"></a></TD>

	<TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="?id=content/tales.php"><img src="images/ETv2_03.png"></a></TD>

	<TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT="">
<a href="link"><img src="images/Contactbutton.png"></a></TD>

	<TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png"
	 WIDTH=563 HEIGHT=156 ALT=""></TD>

	<TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>

	<TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a> 

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png"
	 WIDTH=225 HEIGHT=26 ALT="">
	- <a href="link"> The Truth Is Right Here </a>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png"
	 WIDTH=800 HEIGHT=25 ALT="">

<?php 

include('Edit-WebAff.php'); 

?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png"
	 WIDTH=258 HEIGHT=357 ALT="">

<?php 

include('Edit-Navigation.php'); 

?>

</TD>

	<TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD>

	<TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD>

	<TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD>

	<TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD>

	<TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD>

</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD>

	<TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD>

	<TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD>

</TR>
<TR>
	<TD> <a href="link"><img src="images/ETv2_32.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

	<TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD>

	<TD> <a href="link"><img src="images/ETv2_36.png"
	 WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD>

</TR>
<TR>
	<TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png"
	 WIDTH=537 HEIGHT=177 ALT="">

<?php
$include = "home.php"
$id = $_GET['id'];
$show = $_GET['show'];
if (isset($id)) { 
	if ($id == "content") { $include = "$id/$show.php"; }
}
if (!file_exists($include)) { $include = "missing.php"; }
require_once($include);
?>

	</TD>
</TR>
<TR>
	<TD COLSPAN=15 background="images/ETv2_40.png"
	 WIDTH=798 HEIGHT=41 ALT="">
	</TD>
</TR>
<TR>
	<TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=16 class="footer" background="images/ETv2_42.png"
	 WIDTH=800 HEIGHT=48 ALT="">
<?php 

include('Edit-Footer.php'); 

?>

	</TD>
</TR>
<TR>
	<TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
</div>
</BODY>
</HTML>

Link to comment
https://forums.phpfreaks.com/topic/45937-including-problem/#findComment-223295
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.