Re: Session prob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use session_start().

<?php
session_start();
if (! isset($_SESSION['count'])) {
    $_SESSION['count'] = 1;
}
else {
    $_SESSION['count']++;
}
print $_SESSION['count'];
?>

--
Fernando Correa da Conceição
ICQ 168518047

http://manualphp.sourceforge.net
Participe da Tradução do Manual do PHP

"Disko_kex" <disko_kex@swedish-mushroom.com> escreveu na mensagem
001e01c38b5d$05b56820$e900a8c0@lokalguirdcfee">news:001e01c38b5d$05b56820$e900a8c0@lokalguirdcfee...
<?php
if (! isset($_SESSION['count'])) {
    $_SESSION['count'] = 1;
}
else {
    $_SESSION['count']++;
}
print $_SESSION['count'];
?>


Why isn´t this working? Is there something I done wrong during the
installation or what?

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux