<?php
require('userinfo.class.php');
$User = new userChecker('users',
array('Username' => 'username', 'Password' => 'password') // table Columns
,
array('Username' => 'username', 'Password' => 'password') // cookies Names
);
if($User->userinfo('usergroup') == 0)
{
echo 'Hey , You Are Just A Visitor !';
} else // so userinfo('usergroup') > 0 or = 1
{
echo 'You Are A member !';
}
echo '<br />';
echo 'your Name: '.$User->userinfo('username');
?>
|