Note that there are some explanatory texts on larger screens.

plurals
  1. POWarning: session_start() [function.session-start]: Cannot send session cache limiter
    primarykey
    data
    text
    <p>I have a problem with Session_start() here :</p> <p><strong>Warning</strong>: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\pages\home.php:4) in <strong>C:\xampp\htdocs\charts\home-chart.php</strong> on line <strong>2</strong></p> <p>and in home-chart.php in line 2 I wrote codes like this : </p> <pre><code>session_start(); . . . echo ' username: '.$_SESSION['user_name']; </code></pre> <hr> <p>although with this warning i can get result of <code>$_SESSION['user_name']</code> but when I try to clear this part of the code :</p> <pre><code>session_start(); </code></pre> <p>I can't see any result in screen. so, what's your solution?</p> <pre><code>&lt;?php @session_start(); require_once '../class/chart.class.php'; $chart = new chart(); ?&gt; &lt;html&gt; &lt;head&gt; &lt;link href='../css/home-chart.css' rel='stylesheet' type='text/css' /&gt; &lt;/head&gt; &lt;body&gt; &lt;div class='float_left' style="margin-bottom:20px;"&gt; &lt;div class='float_left' style='line-height: 9.41px; font-size: x-small;'&gt;0&lt;br /&gt;&lt;/div&gt; &lt;div class='float_left' style="background-image: url('../image/web/chart.png'); width: 367px; height: 226px; " &gt; &lt;!-- 1 --&gt;&lt;div class='float_left float_left column' style='margin-left:2px;'&gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(-3)); ?&gt; &lt;/div&gt; &lt;!-- 2 --&gt;&lt;div class='float_left float_left column'&gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(-2)); ?&gt; &lt;/div&gt; &lt;!-- 3 --&gt;&lt;div class='float_left column' &gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(-1)); ?&gt; &lt;/div&gt; &lt;!-- 4 --&gt;&lt;div class='float_left column' &gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(0)); ?&gt; &lt;/div&gt; &lt;!-- 5 --&gt;&lt;div class='float_left column' &gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(1)); ?&gt; &lt;/div&gt; &lt;!-- 6 --&gt;&lt;div class='float_left column' &gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(2)); ?&gt; &lt;/div&gt; &lt;!-- 7 --&gt;&lt;div class='float_left column' &gt; &lt;?php echo $chart-&gt;mysql_fetch($chart-&gt;daycal(3)); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='float_single_full' &gt;&lt;/div&gt; &lt;div class='float_left bottom_chart' style="margin-left:10px;"&gt;&lt;?php echo $chart-&gt;dayofweek(-3); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart'&gt;&lt;?php echo $chart-&gt;dayofweek(-2); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart'&gt;&lt;?php echo $chart-&gt;dayofweek(-1); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart' style='font-weight:bold'&gt;&lt;?php echo $chart-&gt;dayofweek(0); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart'&gt;&lt;?php echo $chart-&gt;dayofweek(1); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart'&gt;&lt;?php echo $chart-&gt;dayofweek(2); ?&gt;&lt;/div&gt; &lt;div class='float_left bottom_chart'&gt;&lt;?php echo $chart-&gt;dayofweek(3); echo ' username: ' . $_SESSION['user_name']; ?&gt;&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload