You need to start the session.

sesstion_start();

Read up - http://us3.php.net/manual/en/function.session-start.php

-----Original Message-----
From: Disko_kex [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 05, 2003 12:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Session prob


<?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

Reply via email to