<td height="30" width="20%" class="boxheadbg_title"> Sponsor Id</td> <td height="30" width="20%" class="boxheadbg_title"> User Name</td> </tr> <?php $ClassName = 'oddrow'; if ($obj->NumRows($tokens) > 0) { $i = 1; while ($token = $obj->fetchNextObject($tokens)) { if ($ClassName == 'oddrow') { $ClassName = 'evenrow'; } else { $ClassName = 'oddrow'; } $user = $userObj->getUserByPin($token->token); ?> <tr class="<?php echo $ClassName; ?> "> <td height="30" width="20%"><?php echo $i; ?> </td> <td height="30" width="20%"><?php echo $token->token; ?> </td> <td height="30" width="20%"> <?php
<?php session_start(); require_once "lib/config.inc.php"; require_once "lib/classes/User.php"; require_once "lib/encryption.inc.php"; $userObj = new User(); if (isset($_POST["search_keyword"])) { $user_pin = $commonObj->praseData($_POST["search_keyword"]); $user = $userObj->getUserByPin($user_pin); if ($user) { echo ucfirst($user->username); } }