Can any body help with the above error and how to fix it . here is the code refered to in the error
Fatal error: Call to undefined function displayHeader() in C:\wamp\www\fun ctions.php on line 15
<?php
require( "config.php " );
//-------------------------------------------------------------------------------------------------------
function dbConnect()
{
global $dbHost, $dbUser, $dbPasswd, $dbName, $dbConn, $numComments, $table;
$dbConn = @mysql_connect( $dbHost, $dbUser, $dbPasswd ) or error( mysql_error() );
mysql_select_db ($dbName, $dbConn) or die("Error 2 in Application: " . mysql_error());
}
//-------------------------------------------------------------------------------------------------------
function error( $error )
{
global $forumTitle;
displayHeader( "Error Page" );
echo "
<center><h4>< ;Error Page></h4></center>
<center><h4><fo nt color=#FF0000>E rror: $error</font></h4></center>
<DIV align=center><a href=javascript :history.back() ;>Back</a> | <a href=forum.php> $forumTitle</a></DIV>";
displayFooter() ;
exit;
}
Fatal error: Call to undefined function displayHeader() in C:\wamp\www\fun ctions.php on line 15
<?php
require( "config.php " );
//-------------------------------------------------------------------------------------------------------
function dbConnect()
{
global $dbHost, $dbUser, $dbPasswd, $dbName, $dbConn, $numComments, $table;
$dbConn = @mysql_connect( $dbHost, $dbUser, $dbPasswd ) or error( mysql_error() );
mysql_select_db ($dbName, $dbConn) or die("Error 2 in Application: " . mysql_error());
}
//-------------------------------------------------------------------------------------------------------
function error( $error )
{
global $forumTitle;
displayHeader( "Error Page" );
echo "
<center><h4>< ;Error Page></h4></center>
<center><h4><fo nt color=#FF0000>E rror: $error</font></h4></center>
<DIV align=center><a href=javascript :history.back() ;>Back</a> | <a href=forum.php> $forumTitle</a></DIV>";
displayFooter() ;
exit;
}
Comment