I have the following code:
if ($currentStage == 7)
{
echo include("include/contentP7.php");
}
The content of “content7.php” exists however it is blank.
But when $currentStage is equal to 7 the page is displayed and a random “1” is outputted although “content7.php” is blank.
I assume it may be to do with returning “True” to the if statement. Why is this and how can I remove this “1”.
includereturnsTRUEupon success, when echoed, it becomes 1.Omit the
echostatement:Include should be on its own.