Ok i have a question..
I made a first php page today and well.. Its not working out right..
All of the pages in the main directory work fine but when it gets into the subdirectory.. it doesnt..
http://flatface.net/~hamtaro/php/
Thats the site..
The subdirectory page is called 'books'
http://flatface.net/~hamtaro/php/books
It says that all the pictures and stuff is IN the books directory insted of the main directory (php)
So.. how do i get it so it thinks everything is stored into the php directory insted of the books directory?
The coding for books/index.php is
Code:
<html>
<head>
<title>GravyChikan.TK</title>
<? include("../phpezmenu.php") ?>.
<?php
css()
?>
</head>
<body>
<?php
topheader()
?>
<!-- Begin content -->
<P>
<center>
<table><tr>
<td width="100"><font face="verdana" color="white" size="1px"><center><img src="images/books2.gif"></center></td><td width="250"><font face="verdana" color="white" size="3px"><b><center>Books</center></b></td><td width="100"><center><a href="images/books.gif" target="_system"><img src="images/books.gif" border="0"></a></center></td></tr></table>
</centeR>
<b><big>Information</big></b><BR>
<i>Released in.. well... a long time ago! Books have been around for centuries and are the ultimate source of infinite knowledge. (Just underneith the internet;) ) Some people hate books, while others love and cherish them.</i><P>
<hr color="black" width="300">
<b><big>Reviews</big></b><BR>
<i>Reviews made by the staff and friends of the site, even reviews by fans and viewers like you.</i><P>
<a href="mailto:maxnard@lycos.com?subject=Gravy Chikan Reviews">Submit Some =)</a><BR>
</font>
<!-- End content -->
<?php
footer()
?>
<?php
copyright()
?>
</body>
</html>
and the coding for phpezmenu is...
Code:
<?php
function css() {
echo '
<style type="text/css">
<!--
body, table, td, div {
font-size:8pt;
font-family:"Verdana";
}
.entries {
width:85%;
margin-bottom:50px;
}
.entries td {
padding:4px;
}
.entries td.nopad {
padding:0;
}
.altposter {
background:#336699;
border:solid 2px Black;
border-bottom:0;
font-weight:bold;
text-align:center;
}
.metabox {
background:#336699;
width:50%;
border:solid 2px Black;
font-weight:bold;
}
.necorn {
background:#000000;
text-align:right;
font-style:italic;
border-right:solid 2px #336699;
border-top:solid 2px #336699;
}
.sidepad {
width:5%
}
.entrybox {
background:#000000;
width:90%;
border-right:solid 2px #336699;
border-left:solid 2px #336699;
}
.currbox {
width:30%;
background:#336699;
border:solid 2px Black;
margin:3px;
float:right;
}
.swcorn {
background:#000000;
border-left:solid 2px #336699;
border-bottom:solid 2px #336699;
}
}
a img {
border: 0;
}
a:hover, .entrybox a:hover, a:active {
text-decoration: glow;
}
-->
</style>
<style type="text/css">
body {
scrollbar-face-color: #336699;
scrollbar-highlight-color:#000000;
scrollbar-shadow-color:#000000;
scrollbar-3dlight-color:#000000;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: 25,51,76;
scrollbar-darkshadow-color:#000000;
background-image: url(background.jpg);
background-attachment: fixed;
}
</style>
<style type="text/css">
A:Link
{ text-decoration: value none; color:#CCCCFF }
A:Visited
{ text-decoration: value none; color:#FF99CC }
A:Hover
{ text-decoration: value underline; color:#FFFFCC }
A:Active
{ text-decoration: value none; color:lightblue }
</style>
<center>
<style type="text/css">
a:hover{
background:url(rain.jpg);border:4px dash indigo}
</style>
<style type="text/css"><!--
.title {font-family:Verdana,MS Sans Serif; font-size:10px; font-weight:bold; color:#333366; position:absolute; top:10px; left:10px}
.quote {font-family:Verdana,MS Sans Serif; font-size:10px; font-weight:bold; color:#000000; position:absolute; top:33px; left:60px}
--></style>
';
}
function topheader() {
echo '
<P>
<!--Menu-->
<center>
<table width="500" valign="top" cellspacing="0" cellpadding="0" bordercolor="black" border="2" P STYLE="border-style:ridge; border-width:5pt; border-color:#336699" width="400" cellpadding="0" cellspacing="0" margains="0">
<P STYLE="border-style:ridge;
border-width:5pt; border-color:#336699">
<tr valign="top">
<td background="voting_bar.jpg" bgcolor="black">
<font face="verdana" color="#FFFFFF">
<center><font size="1px">
<span id="glowtext">`°²º¤æ=¬«.,¸_Menu_¸,.»¬=椺²°`=-.,¸_Menu_¸,.-=°²º¤æ=¬«.,¸_Menu_¸,.»¬=椺²°`</span>
</center>
</font>
</td>
</tr>
<tr>
<td background="bk.jpg"><font face="verdana" size="1px">
<span id="glowtext">
<table>
<tr>
<td><img src="bullet.gif"><a href="news.php" target="main"><font face="verdana" size="1px">News</a></td>
<td><img src="bullet.gif"><a href="test2.php"><font face="verdana" size="1px">Submit_Review</a></td>
<td><img src="bullet.gif"><a href="intellivision/index.php"><font face="verdana" size="1px">Intellivision</a></td>
<td><img src="bullet.gif"><a href="gaw/index.php"><font face="verdana" size="1px">Game_&_Watch</a></td>
<td><img src="bullet.gif"><a href="nes/index.php"><font face="verdana" size="1px">NES</a></td>
<td><img src="bullet.gif"><a href="gb/index.php"><font face="verdana" size="1px">GB</a></td>
<td><img src="bullet.gif"><a href="genesis/index.php"><font face="verdana" size="1px">Genesis</a></td>
<td><img src="bullet.gif"><a href="gamegear/index.php"><font face="verdana" size="1px">Game_Gear</a></td>
<td><img src="bullet.gif"><a href="snes/index.php"><font face="verdana" size="1px">SNES</a></td> </tr><tr>
<td><img src="bullet.gif"><a href="ps1/index.php"><font face="verdana" size="1px">PS1</a></td>
<td><img src="bullet.gif"><a href="n64/index.php"><font face="verdana" size="1px">N64</a></td>
<td><img src="bullet.gif"><a href="dc/index.php"><font face="verdana" size="1px">Dream_Cast</a></td>
<td><img src="bullet.gif"><a href="gbc/index.php"><font face="verdana" size="1px">GBC 2000</a></td>
<td><img src="bullet.gif"><a href="ps2/index.php"><font face="verdana" size="1px">PS2 2000</a></td>
<td><img src="bullet.gif"><a href="gba/index.php"><font face="verdana" size="1px">GBA 2001</a></td>
<td><img src="bullet.gif"><a href="xbox/index.php"><font face="verdana" size="1px">XBOX 2001</a></td>
<td><img src="bullet.gif"><a href="gc/index.php"><font face="verdana" size="1px">GameCube 2001</a></td>
<td><img src="bullet.gif"><a href="pc/index.php"><font face="verdana" size="1px">PC</a></td> </tr><tr>
<td><img src="bullet.gif"><a href="books/index.php"><font face="verdana" size="1px">Books</a></td>
<td><img src="bullet.gif"><a href="tv/index.php"><font face="verdana" size="1px">TV</a></td>
<td><img src="bullet.gif"><a href="movies/index.php"><font face="verdana" size="1px">Movies</a></td>
<td><img src="bullet.gif"><a href="dolls/index.php"><font face="verdana" size="1px">Online_Dolls</a></td>
<td><img src="bullet.gif"><a href="other/index.php"><font face="verdana" size="1px">Other</a></td>
<td><img src="bullet.gif"><a href="http://hhch.signmyguestbook.com"><font face="verdana" size="1px">Guestbook</a></td>
<td><img src="bullet.gif"><a href="http://hamtopia.tk" target="forums"> <font face="verdana" size="1px">Forums</a></td>
</tr>
</table>
<hr color="black" width="50">
</center>
</span>
</center>
</td>
</tr>
</table>
</P>
<!--No Menu-->
';
}
function footer() {
echo '
<P>
<!--Menu-->
<center>
<table width="500" valign="top" cellspacing="0" cellpadding="0" bordercolor="black" border="2" P STYLE="border-style:ridge; border-width:5pt; border-color:#336699" width="400" cellpadding="0" cellspacing="0" margains="0">
<P STYLE="border-style:ridge;
border-width:5pt; border-color:#336699">
<tr valign="top">
<td background="voting_bar.jpg" bgcolor="black">
<font face="verdana" color="#FFFFFF">
<center><font size="1px">
<span id="glowtext">¸,.»¬=椺²°`=-.,¸_Footer_¸,.-=°²º¤æ=¬«.,¸</span>
</center>
</font>
</td>
</tr>
<tr>
<td bgcolor="black">
<span id="glowtext">
<center>
<img src="title.jpg">_____<a href="mailto:caiterz@gmail.com"><img src="chocomail.gif" border="0"></a>
</center>
<hr color="black" width="50">
<table>
<tr>
<td>
<font face="verdana" size="1px" color="lightblue">
<script src="BTJSQuote.js"></script>
<script>BTJSputQ();</script>
</td>
<td valign="top" halign="top"><font face="verdana" size="1px" color="lightpink">Welcome To Gravychikan.tk. Enjoy your stay.<BR><font color="black">--------------------------------------<font color="white">-Staff</td>
</tr>
</table>
<table width="400"><tr><td>
<INPUT TYPE="button" VALUE="Reload" onClick="window.main.location.reload()">
</td>
<td>
_________<INPUT TYPE="button" VALUE="Back" onClick="javascript:history.go(-1)">
</td>
<td>
_________<INPUT TYPE="button" VALUE="Forward" onClick="javascript:history.go(+1)">
</td>
<td>
_________<INPUT TYPE="button" Value="Print" onClick="if (window.print) { main.focus(); main.print()}">
</td>
</tr>
</tr>
</td></tr>
</table>
</center>
</span>
</center>
</td>
</tr>
</table>
</P>
<!--No Menu-->
';
}
function copyright() {
echo '
<P>
<font color="white" size="1px">© 2003-2004 <a href="mailto:sailorwigglytuff@hotmail.com">Cait Berry</a> <BR>
All games belong to original makers and such <BR>
I do not own anything! <BR>
';
}
?>
Thank you so much! ^_~
-Cait