Layout repeats itself!
Moderator: General Moderators
-
MentalMonkey
- Forum Newbie
- Posts: 3
- Joined: Wed Jun 22, 2005 1:27 pm
- Location: England, United Kingdom
Layout repeats itself!
Evening all,
I've just started coding a page in php but, if you point to my site http://mentalmonkey.co.uk you'll see something odd. The layout duplicates itself vertically and i have no idea why! I've viewed the source of the page and it's clearly written twice. But, and here's the mystery, on the source of the same page on my hard drive it's only written once. Surely it can't have changed during the ftp upload?
I don't know what to do!
Any help would be greatly appreciated.
MJ
I've just started coding a page in php but, if you point to my site http://mentalmonkey.co.uk you'll see something odd. The layout duplicates itself vertically and i have no idea why! I've viewed the source of the page and it's clearly written twice. But, and here's the mystery, on the source of the same page on my hard drive it's only written once. Surely it can't have changed during the ftp upload?
I don't know what to do!
Any help would be greatly appreciated.
MJ
-
MentalMonkey
- Forum Newbie
- Posts: 3
- Joined: Wed Jun 22, 2005 1:27 pm
- Location: England, United Kingdom
Here is the code to index.php located on my hard drive. As you can see, it's very different from the one you see on the web.
d11wtq | Please use
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MentalMonkey v3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="left">
<!-- Sidebar content begin -->
<h1>Navigation</h1><br>
<a href=http://mentalmonkey.co.uk/?id=home>Home</a><br>
<a href=http://mentalmonkey.co.uk/?id=friends>Friends (tv)</a><br>
<a href=http://mentalmonkey.co.uk/?id=music>Music</a><br>
<a href=http://mentalmonkey.co.uk/?id=film>Film</a><br>
<a href=http://mentalmonkey.co.uk/?id=downloads>Downloads</a><br>
<a href=http://mentalmonkey.co.uk/?id=affiliates>Affiliates</a><br><br>
<h1>Shoutbox</h1>
<!-- Sidebar content end -->
<h1>Stats</h1>
</div>
<div id="right">
<!-- Main content begin -->
<h1>News</h1>
<?PHP
include("cutenews/show_news.php");
?>
<!-- Main content end -->
</div>
</div>
</body>
</html>Code: Select all
tags when posting PHP code[/color]What do you have in the included file?
Page sure seems quite strange.
Code: Select all
<?PHP
include("cutenews/show_news.php");
?>first read viewtopic.php?t=21171
Last edited by dethron on Fri Jun 24, 2005 12:26 pm, edited 1 time in total.
-
MentalMonkey
- Forum Newbie
- Posts: 3
- Joined: Wed Jun 22, 2005 1:27 pm
- Location: England, United Kingdom