I added some PHP code which I have used from a google search. The code works but it has moved my menu bar over:
www.ltjason.co.uk/teams.php
The code including the original html looks like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/test3.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Aber Digs League Home Page</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
-->
</style>
<script src="SpryMenuBar.js" type="text/javascript"></script>
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div id="container">
<div id="header"><img src="Aberystywyth.jpg" width="356" height="69" />
<div id="GlobalNav"><a href="/sitemap.html">Site Map</a> | <a href="/account.html">Your Account</a></div>
</div>
<!-- InstanceBeginEditable name="mainbaredit" -->
<div id="main">
[B] <?php
$db_host = 'db1.srv.host-it.co.uk';
$db_user = 'mmd5';
$db_pwd = 'twhbo86';
$database = 'aberdigsleague';
$table = 'Team_Reg_Table';
if (!mysql_connect($db_host, $db_user, $db_pwd))
die("Can't connect to database");
if (!mysql_select_db($database))
die("Can't select database");
// sending query
$result = mysql_query("SELECT * FROM {$table}");
if (!$result) {
die("Query to show fields from table failed");
}
$fields_num = mysql_num_fields($result);
echo "<h1>Table: {$table}</h1>";
echo "<table border='1'><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++)
{
$field = mysql_fetch_field($result);
echo "<td>{$field->name}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
echo "<tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td>$cell</td>";
echo "</tr>\n";
}
mysql_free_result($result);
?>[/B]
</div>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="sidebaredit" -->
<div id="sidebar"></div>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="footeredit" -->
<div id="footer"></div>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="menubaredit" -->
<div id="apDiv1"><!-- #BeginLibraryItem "/Library/MenuLib.lbi" --><ul id="MenuBar1" class="MenuBarVertical">
<li><a href="/Home1.php">Home</a></li>
<li><a href="/LeagueInfo.php">League Info</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Match</a>
<ul>
<li><a href="/Fixtures and Results.php">Fixtures and Results</a></li>
<li><a href="/LeagueTable.php">League Table</a></li>
<li><a href="/reports.php">Reports</a></li>
</ul>
</li>
<li><a href="/News1.php">News</a></li>
<li><a class="MenuBarItemSubmenu" href="/photos.php">Photos</a></li>
<li><a href="#">Teams</a></li>
</ul><!-- #EndLibraryItem --></div>
<!-- InstanceEndEditable -->
<div id="bottombar">
<h1>This is not a test of the emergency broadcast system... this is the real thing..............</h1></div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
<!-- InstanceEnd --></html>
Can anybody help me figure out what has made the menu move over please 🙂