it works.
but the first time,i also get the warning(Warning: Undefined variable:
count in C:\WebShare\wwwroot\netk\5\test.php on line 9
).then ,it outputs 2(3,4.)
can you tell me why it beheave like that?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
>
> if (!isset($_SESSION['count'])) {
> $_SESSION['count'] = 0;
> }
> else {
> $_SESSION['count']++;
> }
> echo $count;
> ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2 matches
Mail list logo