|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#31
|
|||
|
|||
|
<html>
<head> <title>DecodethisDOTcom Revised</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="site.css" type="text/css"> </head> <body bgcolor="1563B2" text="#000000"> <center> <table width="966" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="15" height="55"></td> <td width="98"></td> <td width="23"></td> <td width="102"></td> <td width="17"></td> <td width="515"></td> <td width="14"></td> <td width="182"></td> </tr> <tr> <td height="19"></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext"> <tr> <td width="94" height="19" valign="top">Decodethis Nav</td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext"> <tr> <td width="102" height="17">Clan [SRT]</td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext"> <tr> <td width="515" height="17">Todays News</td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext"> <tr> <td width="182" height="19"><center>Pic Of The Day</center></td> </tr> </table> </td> </tr> <tr> <td height="10"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="150"></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="98" height="148"> <? include("includes/links.php"); ?> </td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="102" height="148"> </td> </tr> </table> </td> <td></td> <td rowspan="5" valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="515" height="335"> <? if ( $link ) { include($link . ".php"); } else { ?> <p>Please pick a person</p> <? } ?> </td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="182" height="150"></td> </tr> </table> </td> </tr> <tr> <td height="14"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="19"></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext"> <tr> <td width="98" height="17"></td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="98" height="18"></td> </tr> </table> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="9"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="157"></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="98" height="155"></td> </tr> </table> </td> <td></td> <td valign="top"> <table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0"> <tr> <td width="102" height="155"></td> </tr> </table> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="24"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> </center> </body> </html> |
|
#32
|
|||
|
|||
|
do <?include( "include/" . $person . ".php" );?>
don't put a / in front, that makes php look in the root directory for your files ( it's like putting c:\include\file.php ). |
|
#33
|
|||
|
|||
|
try replacing
if ( $link ) { with if ( isset( $link ) ) { |
|
#34
|
|||
|
|||
|
i replaced $person with $link
cause i changed that in my links.php too but the page doesnt display when i do that or with the original one either i just get "Parse error: parse error in /home/sites/site138/web/new.php on line 95" |
|
#35
|
|||
|
|||
|
can you post your links.php too?
your file is working fine for me. no errors. |
|
#36
|
|||
|
|||
|
this is the line cause all the probs
"do <?include( "include/" . $link . ".php" );?> " |
|
#37
|
|||
|
|||
|
<html>
<head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="site.css" type="text/css"> </head> <body bgcolor="52DA7C" text="#000000"> <p class="smalltext">->testing out links.php<br> <a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a> </p> <a href="<?=$PHP_SELF?>?link=dod.php">DoD</a> </body> </html> |
|
#38
|
|||
|
|||
|
well, get rid of "do"...
and you'll need "includes" instead of "include". i read your post wrong. |
|
#39
|
|||
|
|||
|
make
<a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a> <a href="<?=$PHP_SELF?>?link=srt_god.html">SRT.God</a> and rename the file. it might be having problems with the $PHP_SELF part, too. but try that. |
|
#40
|
|||
|
|||
|
nope still getting the error
i dont understand it so you can click on the God link and have it open his profile in the middle? |
|
#41
|
|||
|
|||
|
you can't have /'s in your variable. it confuses php and your browser.
|
|
#42
|
|||
|
|||
|
also, make your links.php file
<p class="smalltext">->testing out links.php<br> <a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a> </p> <a href="<?=$PHP_SELF?>?link=dod.php">DoD</a> you won't be using the file by itself, so all that extra html markup will mess things up. |
|
#43
|
|||
|
|||
|
you can try removing the
<?=$PHP_SELF?> and replace them with new.php see if that might be the error. |
|
#44
|
|||
|
|||
|
nope still getting error on line 95 of new.php
95=<?include( "includes/" . $link . ".php" );?> |
|
#45
|
|||
|
|||
|
change
<?include( "includes/" . $link . ".php" );?> to <?include( "includes/" . $link );?> |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > including pages without SSI |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|