Reply to Re: mysql help

Your name:

Reply:


Posted by Geoff Berrow on 01/03/06 09:02

Message-ID: <iYnuf.125988$WH.82336@dukeread01> from Frank R. Jr.
contained the following:

>Was hoping to get more response before I reply, I semi understand what
>your saying by session variable you do mean cookie? And do you know
>where I could find an example of this?

The session section of the manual is daunting but does contain this. ;-)
I just added the echo.

<?php
session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>

The session data is stored on the server, an is referenced most commonly
by a volatile cookie. This is lost when the browser window is closed.
Each page using the session variable has to have session_start(); as
the first line

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация