Hi bradgrafelman,
Thanks for the reply, I have tried the .htaccess could and it wouldn't reproduce anything.
I used DreamweaverMX to create the site, the output page includes this text
Unfortunately an error has occurred when you have attempted to visit our site. You have probably not done anything wrong, it may be a server error, or the page you are looking for has been moved.<br><br>
Please try again, if this page reappears, contact us using the 'Contact Form' to report the problem. Some of the possible problems are listed below.
<br><br><h1><?php echo $row_rsError['errorTitle']; ?></h1><br>
<?php echo $row_rsError['errorText']; ?>
<br><br>
<div id="return"><a href="#top" onmouseover="window.status='Click here to return to the top of the page';return true" onmouseout="window.status='';return true">Return to top of this page.</a></div>
I have changed the PHP in the header to this
<?php require_once('Connections/ftc.php'); ?>
<?php
mysql_select_db($database_ftc, $ftc);
$query_rsError = "SELECT * FROM ftc_errors WHERE errorType = '%d'";
$rsError = mysql_query($query_rsError, $ftc) or die(mysql_error());
$row_rsError = mysql_fetch_assoc($rsError);
$totalRows_rsError = mysql_num_rows($rsError);
?>
I have tried to reproduce the error page again on my apache server and it seems to work, but a '404' error does not show the information that I have stored in the database in the entry for errorType '404', etc.
I am pretty new to PHP/MySQL and I am sure that I am doing something wrong that is probably so simple :-(