Jump to content

Recommended Posts

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/minipla/public_html/add.php:8) in /home/minipla/public_html/add.php on line 34

 

 

 

this is the page

 

<!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=iso-8859-1" />

<title>Home</title>

<link href="main.css" rel="stylesheet" type="text/css" />

 

<style type="text/css">

<!--use to move the whole content-->

body {

margin-top: 0px;

margin-bottom:20px;

}

 

#box2 #prodlist .proddiv {

}

.style1 {color: #000000}

.style3 {color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; }

.style5 {font-family: Geneva, Arial, Helvetica, sans-serif}

.style6 {font-family: Verdana, Arial, Helvetica, sans-serif}

a {

color: #666666;

}

.style7 {color: #333333}

</style>

</head>

<body><!--start main div - this centers content on the page-->

<div id="main">

 

<!--start header - contains company logo-->

<!--end header-->

<?php

session_id();

session_start();

//connect to the database

require_once('connection1.php');

 

//declare variables and assign them values from form

echo "<br />";

 

$qty =$_POST['qty'];

$prodnum =$_POST['prodnum'];

//assign the value of the session id to $sess

$sess =session_id();

 

/*

add new item to the temporary cart table of the database.  This is the table which is queried when you view the contents of your cart

*/

 

$query = "INSERT INTO carttemp (sess, quan, prodnum)

          VALUES ('$sess','$qty', '$prodnum')";

          $results = mysql_query($query)

          or die(mysql_error());

         

          //include the cart.php file in this page

          include("cart.php");       

?>

</body>

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/56199-cannot-send-session-cache-limiter/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.