I purposely broke the code and removed a ; and received an error message when I reloaded the page, so that part works.
I have a number of “includes” in the code which all work except one. this is directly after the query, however all of the includes “After” that section still work. In the past if there is an error in any of the code there will be an error messages somewhere even if most of the page working like if the query refers to somewhere not available like prod_table instead of prod-table, in the past the page will load but an error within the page will appear. The code block below is the part in question:
</div><!-- prod -->
<? include ('prodbot.php');?>
</div><!--mainbod-->
After this code, there are some closing “Div” tags and then a further “include” which does display, which sort of indicates that there are no “noticeable” errors all my pages have similar code and all have the same problem. When I am logged in I can view my account details so the site is actually able to pull data from the database. I have also tried substituting $result with $sql (as it is in my customer query code)
<?php $sql = mysql_query("SELECT * FROM customer WHERE UserName='" . $_SESSION['UserName'] . "' LIMIT 1"); while($row = mysql_fetch_assoc($sql)){ ?>Again no difference and no errors. Tried all that so I am at a loss really.