Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\xampp\htdocs\prac\picvw.php:202) in G:\xampp\htdocs\prac\picvw.php on line 220

<!DOCTYPE html>
<html>


<head>

<style type="text/css">
header, section, footer, aside, nav, article, figure, figcaption {
                                                                    display: block;}
body {
            color: #666666;
            background-color: #f9f8f6;

            background-position: center;
            font-family: Georgia, times, serif;
            line-height: 1.4em;
            margin: 0px;}


.wrapper {
            width:1111px;
            margin: 20px auto 20px auto;
            border: 2px solid skyblue;
            background-color: #ffffff;}


nav, footer {
            clear: both;
            color: #ffffff;
            background-color: skyblue;
            height: 30px;}
nav ul {
            margin: 0px;
            padding: 5px 0px 5px 30px;}
nav li {
            display: inline;
            margin-right: 40px;}
nav li a {

            color: Green;}
nav li a:hover, nav li a.current {
                                    color: orange;}
section.courses {
            float: left;
            width: 659px;
            border-right: 1px solid #eeeeee;}
article {
            clear: both;
            overflow: auto;
            width: 100%;}
hgroup {
            margin-top:40px;}
figure {
            float: left;
            width: 290px;
            height: 220px;
            padding: 5px;
            margin: 20px;
            border: 1px solid #eeeeee;}


figcaption {    color: red;
                font-size: 100%;
                text-align: left;}
aside {
                width: 230px;
                float: left;
                padding: 0px 0px 0px 20px;}
aside section a {
                display: block;
                padding: 10px;
                border-bottom: 1px solid #eeeeee;}
aside section a:hover {
                color: blue;
                background-color: #efefef;}
a {
                color: #de6581;
                text-decoration: none;}
h1, h2, h3 {    
                font-weight: normal;}
h2 {            color: Orange;

                padding: 0px;}
h3 {
                margin: 0px 0px 10px 0px;
                color: #de6581;}


aside h2 {
                padding: 30px 0px 10px 0px;
                color: red;}
footer {
                font-size: 80%;
                padding: 7px 0px 0px 20px;}

p {             color: teal;
                font-size: 100%;
                }

footer{         text-align: center;     
                color: black;
                font-size: 15px;}


b{text-align: center;}

    input#submit {
                            color: brown;
                            text-shadow: 2px 1px 1px #ffffff;
                            border-bottom: 5px solid #b2b2b2;
                            background-color: #b9e4e3;
                            background: -webkit-gradient(linear, left top,
                            left bottom, from(#beeae9), to(#a8cfce));
                            background:
                            -moz-linear-gradient(top, #beeae9, #a8cfce);
                            background:
                            -o-linear-gradient(top, #beeae9, #a8cfce);
                            background:
                            -ms-linear-gradient(top, #beeae9, #a8cfce);}
                            input#submit:hover {
                            color: green;
                            border: 2px solid orange;
                            border-top: 2px solid #b2b2b2;
                            background-color: #a0dbc4;
                            background: -webkit-gradient(linear, left top,
                            left bottom, from(#a8cfce), to(#beeae9));
                            background:
                            -moz-linear-gradient(top, #a8cfce, #beeae9);
                            background:
                            -o-linear-gradient(top, #a8cfce, #beeae9);
                            background:
                            -ms-linear-gradient(top, #a8cfce, #beeae9);}
input#text {
                            color: brown;
                            text-shadow: 2px 1px 1px #ffffff;
                            border: 10px solid #b2b2b2;
                            background-color: #b9e4e3;
                            background: -webkit-gradient(linear, left top,
                            left bottom, from(#beeae9), to(#a8cfce));
                            background:
                            -moz-linear-gradient(top, #beeae9, #a8cfce);
                            background:
                            -o-linear-gradient(top, #beeae9, #a8cfce);
                            background:
                            -ms-linear-gradient(top, #beeae9, #a8cfce);}
input#text:hover {
                            color: green;
                            border: 2px solid orange;
                            border-top: 2px solid #b2b2b2;
                            background-color: #a0dbc4;
                            background: -webkit-gradient(linear, left top,
                            left bottom, from(#a8cfce), to(#beeae9));
                            background:
                            -moz-linear-gradient(top, #a8cfce, #beeae9);
                            background:
                            -o-linear-gradient(top, #a8cfce, #beeae9);
                            background:
                            -ms-linear-gradient(top, #a8cfce, #beeae9);}

div {

                            margin: 3px;
                            padding-bottom: 20px;
                            width: 260px;}
.title {
                            float: left;
                            width: 100px;
                            text-align: left;
                            padding-right: 0px;}

.submit {
                            text-align: right;}
label  {                    color: blue;}

h1 {                        color: Green;
                            font-family: "Monotype Corsiva";
                            font-size: 80px;}

h5{                         color: green;
                            font-size: 30px;
                            text-position: bottom center;}

fieldset {                  border: 2px solid teal;}

legend{                     color: red;
                                        }

aside section.register{     
                            width: 100px;
                            }

    img:hover {border: 2px solid skyblue;
               }

</style>

</head>
<body>
                <div class="wrapper">
                    <header>
                    <?php
 print "Today is ";
 print date("D M j  Y");
print Date( "g:i a" ); ?>
                    <?php  echo "<img src='../mww.jpg' align='left'/>" ;?> 
                            <h1>MorphWorld.com</h1>
                             <p>EveryDay In Every Way We Are Serving You Better:)</p>
                            <nav>
                                <ul>
                                    <li><a href="hp.php"><b>HOME</b></a></li>
                                    <li><a href="services.php" class="current"><b>SERVICES</b></a></li>
                                    <li><a href="aboutus.php" ><b>ABOUT US</b></a></li>
                                    <li><a href="contactus.php" ><b>CONTACT US</b></a></li>
                                </ul>
                            </nav>
                    </header>
                <section class="courses">
                    <?php
    session_start();
    include "connect.php";
?>
<?php
    $nm=$_GET['name'];
    $q="select * from image where name='".$nm."' and userid='".$_SESSION['userid']."'" ;
    $s=mysql_query($q);
    $count=0;
    while($r=mysql_fetch_array($s)){
        $img=$r['imgnm'];
        if($count==8){
?>
        <br><hr>
<?php
        $count=0;
        }
?>      
        <input type="checkbox" name="image" value="<?php echo $img ?>"><img src="./pic/<?php echo $img ?>" height=100 width=100>
<?php
        $count=$count+1;
    }
?>
                </section>
                <aside>
                        <section class="new-offers">
                            <h5>Fill Up the details for Ordering</h5>

                            <form action='order.php' method='POST'><legend>Order DEtails</legend>
                                        <div>
                                            <label for="name" class="title">Passport:</label>
                                            <input type="text" id="passport" name="pp" size="5"/>
                                        </div>
                                        <div>
                                            <label for="stamp" class="title">Stamp-Size:-</label>
                                            <input type="text" id="stamp" name="stamp" size="5" /></div>
                                            <div>
                                            <label for="poster" class="title">Poster-Size:-</label>
                                            <input type="text" id="poster" name="poster" size="5" /></div>

                                            <input type="submit" value="Order Now"
                                            id="submit" />
                            </form>

                        </section>

                </aside>
                <footer>
                        copyright@MorphWorld.com
                </footer>
                </div> 

</body>

</html>

try putting this

session_start();

above the page, just right after <?php

<?php

    session_start();

its right there line no 218,@veedeoo

there can be no output , or even empty lines outside <?php ?> before

session_start();

so do as veedeoo tells you and put it at the top of the page

<?php
session_start();
?>
<!DOCTYPE html>
<html>
<?php
ob_start();
session_start();
?>

and file encoding UTF8 without BOM()

well i solved my problem,i simply used the function error_reporting(0) before the session_start() and my warning disappeared.neways thanx for your concern guys :)

Member Avatar for diafol

error_reporting(0)

This only removes the warning, it does not make your code right. It's like disconnecting the oil light on your car's dashboard. Drive along in complete ignorance :)

session_start() as mentioned by nearly everybody else should be the first thing you place in the page - before any markup.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.