Jump to content

PHP Pages in files.


Bradley99

Recommended Posts

Hi, (Just wanna say thanks to the guy who helped me earlier as i cannot find the topic)

 

I have a game, it has 3 frames, menu, header & the main content, it WAS fine until i deleted a 4th frame, now when i click a link from the menu, instead of showing the link in the 'Main' content area, it takes you to the actual page with no menu, header etc.

 

Thanks in advance!

Link to comment
Share on other sites

Just to clarify, i know a few methods but they mean going into every page that would be in the main section and adding script, i have around 50/60 pages on the site so i was looking for an easier method, the code is no different from my other site so i cannot see why it has changed.

 

Here is the game.php frame script.

 

<?php
session_start();
include_once"eng/includes/db_connect.php";
$username=$_SESSION['username'];

$query3=mysql_query("SELECT * FROM user_info WHERE username='$username'");
$fetch3=mysql_fetch_object($query3);
$lang = $fetch3->lang;
if($lang == "Turkish"){

$langurl="tr";

}else{

$langurl= "eng";
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Frames</title>
</head>

<frameset border="0" frameborder="0" framespacing="0" rows="92,499" cols="*">
  <frame src="<? echo "$langurl"; ?>/banner.php" scrolling="no" marginwidth="10" marginheight="10" id="banner" />
  <frameset border="0" frameborder="0" framespacing="0" rows="*" cols="92,499">
    <frame src="<? echo "$langurl"; ?>/menu.php" scrolling="auto" marginwidth="10" marginheight="10" frameborder="0" noresize="noresize" id="menu" />
    <frame src="<? echo "$langurl"; ?>/you_stats.php" scrolling="auto" marginwidth="10" marginheight="10" frameborder="0" noresize="noresize" id="main" />
  </frameset>
</frameset>
<noframes><body><p>Your browser doesn't support Frames, please use a more modern one.</p></body></noframes>
</html>

Link to comment
Share on other sites

Thanks Thorpe :)

 

Heres some of the menu....

 

tr>
					  <th onClick="Menu.toggle(this);" id="">Game</th>
					</tr>
					<tr>
						<td>
							<div class="subnav" style="display: ;overflow: hidden;">
								<table cellpadding="0" cellspacing="0">
<tr><td><a class="menuLink" href="./you_stats.php" onMouseDown="return false;" target="main">My Stats</a></td></tr>
									<tr>
									<td><a class="menuLink" href="countrys.php" onMouseDown="return false;" target="main">Countries</a></td>
									</tr>
									<tr><td><a class="menuLink" href="./bank4.php" onMouseDown="return false;" target="main">Bank</a></td></tr>
                                                                                
									<tr><td><a class="menuLink" href="./buy.php" onMouseDown="return false;" target="main">Shop/Market</a></td></tr>

									<tr><td><a class="menuLink" href="./fly.php" onMouseDown="return false;" target="main">Travel</a></td></tr>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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