This is my code:
$msg = "Hello User {$uid}";
echo $msg;
$action = $_GET['do'];
if( file_exists("page/actions/{$action}.php") && !empty($action))
include_once("page/actions/{$action}.php");
else
include_once("page/actions/default.php");
Now I need to change it into:
if included page :
include_once("page/actions/{$action}.php");
returned an ‘error’ array then $msg variable won’t be displayed.
Is that possible?
I don’t really understand but if you set an error array in your included file you can check with
isset($errorArray). And echo the message if not set.