header displaying a notice in php mysql -


i have header.php include nav bar using session transfer stored data problem browser keep display error message:

a session had been started - ignoring session_start() in c:\wamp\www\new adamkhoury\header.php on line 2

header.php

<?php session_start(); ob_start(); /*if($_session['login'] != 'true'){         header("location:index.php");     }*/     //var_dump($login_user);  require_once('include/connect.php');      $id = ($_session['user_id']);    $username= ($_session['user_name']) ;    var_dump($username);    var_dump($id);    ?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>untitled document</title> <link href='http://fonts.googleapis.com/css?family=oswald:400,300' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=abel|satisfy' rel='stylesheet' type='text/css' /> <link href="default.css" rel="stylesheet" type="text/css" media="all" />  </head>  <body> <div id="banner">   <div class="img-border">     <div id="header-wrapper">       <div id="header">          <div id="logo">           <marquee width="80%">             <h1><b>social media network</b></h1>           </marquee>         </div>          <div id="menu">              <ul>                 <li><a href="profile.php" accesskey="1" title=""><?php echo $username ?>'s profile</a></li>                 <li><a href="update_account.php" accesskey="2" title="">update</a></li>                 <li><a href="search.php" accesskey="3" title="">search</a></li>                 <li><a href="map.php" accesskey="4" title="">map</a></li>                 <li><a href="feedback_form.php" accesskey="4" title="">feedback</a></li>                 <li><a href="help.php" accesskey="6" title="">help</a></li>                 <li><a href="logout.php" accesskey="7" title="">logout</a></li>             </ul>          </div>         </div>     </div>     <img src="images/web_header copy.jpg" width="1121" height="210" alt="" />   </div> </div>  </body> </html> <?php ob_end_flush(); ?> 

the error message pretty clear: calling session_start() twice
, have remove 1 call


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -