I have been told that I can use a return statement to return to page from and if statement. But i just keep getting premature end of script headers.
Can anyone offer a solution as I only need the if part of the statement and then I want to get out of it.
Cheers Faye
if ($DBI::err) {
$TABLE_OUTPUT .= "<table border=\"10\" height=\"34\">\n";
$TABLE_OUTPUT .= "<TR>\n";
$TABLE_OUTPUT .= "<TD> ERROR - Unable to create Environment</td>\n";
$TABLE_OUTPUT .= "</TR>\n";
$TABLE_OUTPUT .= "</table>\n";
}
else
{
return ????????????????????????????????????????????????;
}
Can anyone offer a solution as I only need the if part of the statement and then I want to get out of it.
Cheers Faye
if ($DBI::err) {
$TABLE_OUTPUT .= "<table border=\"10\" height=\"34\">\n";
$TABLE_OUTPUT .= "<TR>\n";
$TABLE_OUTPUT .= "<TD> ERROR - Unable to create Environment</td>\n";
$TABLE_OUTPUT .= "</TR>\n";
$TABLE_OUTPUT .= "</table>\n";
}
else
{
return ????????????????????????????????????????????????;
}