Re: problem with the session and global variable

From: Date: Sat, 03 Sep 2005 05:29:16 +0000
Subject: Re: problem with the session and global variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221790@lists.php.net to get a copy of this message
Hi there! I don't quite understand what you're trying to do here. Please send more code, then I might be able to help you... :-) /G @varupiraten.se ----- Original Message ----- From: "Tomás Rodriguez Orta" <admin@angerona.cult.cu> To: <php-general@lists.php.net> Sent: Saturday, September 03, 2005 4:46 AM Subject: [PHP] problem with the session and global variable Hello people. I have an problem very very complicate for me. I have some template in my web sitie, and a car buy, I want to show to the user what count of the books have in your car buy, but when I enter a new page in the other tampletae the variable take 1, why? In ache page I write the following line session_start() and the template I write if (isset($_SESSION['listprod'])) { $c=$_SESSION['i']; echo $c." "."books in your car buy"; some bidy can help me? best regards TOMAS ------------------------------------------------------------------------- Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27 en el dominio de correo angerona.cult.cu y no se encontro ninguna coincidencia. -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/88 - Release Date: 2005-09-01

« previous php.general (#221790) next »