Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64\www\proj\index.php:2) in C:\wamp64\www\proj\menu\edit.php on line 8
index.php
<?php include_once "includes/functions.php";?>
<!DOCTYPE html>
<html>
<head>
edit.php
$id = $_GET['id'];
$menu = getmenu($id);
if (isset($_POST['btn']))
{
$data = $_POST['frm'];
edit_menu($data,$id);
header("location:index.php?m=menu&p=list");
}
Can Anybody Help Me With This? BTW the database is updating and there is no problem with that.