Hi Steve,
Thanks for your reply. No there wasn’t any non-cache effect in the header of the ASP pages. Not using a loader for the content either. Newbie to PHP so pages are definitely a work in progress.
This is an example of the HTML page:
<?php
include(“_private/logon_details.php”); ?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=“Content-Language” content=“no-bok”>
<meta charset=“iso-8859-1”>
<link rel="icon" type="image/png" href="images/favicon.ico">
<link rel="stylesheet" href="css/css-main.css" type="text/css" media="screen" />
</head>
<body>
<div class=“wrapper”>
<div class =“innerwrap”>
<div class=“home-link”><a href=“index.php”></a></div>
<div class=“navigation”>
<ul>
<li><a href=“prosjekter.php”>PROSJEKTER</a></li>
<li><a href=“samarbeidspartnere.php”>SAMARBEIDSPARTNERE</a></li>
<li><a href=“om-oss.php”>OM OSS</a></li>
<li>TJENESTER</li>
<li><a href=“http:www.blogspot.com/”>VÅR BLOGG</a></li>
<li><a href=“kontakt-oss.php”>KONTAKT OSS</a></li>
</ul>
</div>
<div class ="tab_container">
<div class= "capacity_nav">
<ul class="tabs">
<li><a href="metallforming.php">Metallforming</a></li>
<li><a href="mekanisk-bearbeiding.php">Mekanisk Bearbeiding</a></li>
<li><a href="overflatebehandling.php">Overflatebehandling</li></a></li>
<li class="maintab"><a class="activetab"href="#">Sammenføying</li></a></li>
<li><a href="varmebehandling.php">Varmebehandling</li></a></li>
<li><a href="produktutvikling.php">Produktutvikling</li></a></li>
<li><a href="verktøyutvikling.php">Verktøyutvikling</li></a></li>
<li><a href="montasje.php">Montasje</li></a></li>
</ul>
</div>
<div class="subcapacity_nav">
<ul class="subcat">
<li><a href="sveising-TIG.php">Sveising TIG</a></li>
<li><a href="sveising-MIG.php">Sveising MIG</a></li>
<li><a href="lodding.php">Lodding</li></a></li>
<li><a href="liming.php">Liming</li></a></li>
<li><a class ="activesubtab" href="#">Friction Stiring Welding</li></a></li>
<li><a href="robotsveising.php">Robotsveising</li></a></li>
</ul>
</div>
<div class="content_tjenester">
<h1>FRICTION STIRING WELDING</h1>
<hr class ="shiftleft16" >
<?php $subcapacity="Friction Stiring Welding";
include("script/displaysubcapacity.php");?>
</div>
</div>
</div>
<?php include(“footer.php”);?>
</div>
</body>
</html>
The displaysubcapacity.php script :
<?php
$rsSubCapacity = mysql_query(“SELECT * FROM S_tbl_sub_capacity where name= ‘$subcapacity’”)or die(mysql_error());
if ($rowCap = mysql_fetch_assoc($rsSubCapacity)) {
$SubCapID=$rowCap[‘id’];
$rsCompanySubCapacities=mysql_query(“SELECT * FROM S_tbl_company_sub_capacities where fk_sub_capacity_id= ‘$SubCapID’”)or die(mysql_error());
while ($rowCompSubCap = mysql_fetch_assoc($rsCompanySubCapacities)) {
$CompanyID=$rowCompSubCap[‘fk_company_id’];
$rscompany = mysql_query("SELECT * FROM S_tbl_company where id= '$CompanyID'")or die(mysql_error());
while ($result = mysql_fetch_assoc($rscompany)) {?>
<h2><?php echo $result['name'];?> </h2>
<p class="reducespace">
<?php echo $result['address']."". $result['postal_code']. " " . $result['postal_area'] ;?>
</p>
<p class="reducespace"> Telefon: <?php echo $result['phone1'];?>
</p>
<p>
<?php echo '<a class ="maillink" href="mailto:' . $rsCompany['e_mail'] . '">' . $result['e_mail'] . '</a>';?>
</p>
<br>
<p class="reducespace">
<?php echo $rowCompSubCap['description'];?>
</p>
<?php
}
}
}
?>
And the footer.php script:
<div class=“footer”>
<a class=“bedrift1 hidetext” href = “javascript:void(0)” onclick = “document.getElementById(‘light1’).style.display=‘block’;document.getElementById(‘fade’).style.display=‘block’”>Sauda Maskinering AS</a>
<div id=“light1” class=“white_content”>
<?php
$Bedriftstr=“bedrift”;
include(“script/displaybedrift.php”);?>
<a class=“close” title=“close window” href = “javascript:void(0)” onclick = “document.getElementById(‘light1’).style.display=‘none’;document.getElementById(‘fade’).style.display=‘none’”>X</a></div>
<div id=“fade” class=“black_overlay”></div>
<?php mysql_close($con); ?>
Many thanks
Sue