Login   Register  
PHP Classes
elePHPant
Icontem

File: page2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Julien PACHET  >  MySQL Session  >  page2.php  >  Download  
File: page2.php
Role: Example script
Content type: text/plain
Description: page which read datas
Class: MySQL Session
Manage session data storing it in a MySQL table
Author: By
Last change:
Date: 2004-03-05 15:22
Size: 504 bytes
 

Contents

Class file image Download
<?php
require_once("class_session.inc.php");
$sess=new session();

echo 
'Bienvenue sur la page numéro 2<br>/n';
echo 
$sess->get('favcolor'); // vert
echo $sess->get('animal'); // chat
echo date('Y m d H:i:s'$sess->get('time'));
echo (
$sess->is_registered('animal'))?"animal enregistré<br>\n":"animal pas enregistré<br>\n";
$sess->unregister('animal');
echo (
$sess->is_registered('animal'))?"animal enregistré<br>\n":"animal pas enregistré<br>\n";
echo 
'<br>\n<a href="a.php">page 1</a>';
?>