I'm trying to include a php file (imgupload.php) to another (addbusiness.php). My addbusiness.php uses the imgupload.php file to upload data to my database, and also upload images to a folder. I'm using a form, but I must include it because I want to display error, and succes messages on my 'addbusiness' page to the users. When I include it, my page doesn't display anything, it just becames an empty white page. Here's the first part of my addbusiness.php file:
<?php
header('Content-type: text/html; charset=utf-8');
require_once("db_connect.php");
include('imgupload.php');
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] === false) {
header("Location: login.php");
} else {
?>
//HTML part starts here