database_query( $query ); // GET THEM INTO AN ARRAY $items = Array(); $dummy_user = new se_user(); $rank = 1; while($row = $database->database_fetch_assoc($rows)) { $dummy_user->user_info['user_id'] = $row['user_id']; $dummy_user->user_info['user_photo'] = $row['user_photo']; $dummy_user->user_info['user_username'] = $row['user_username']; $dummy_user->user_info['user_lname'] = $row['user_lname']; $dummy_user->user_info['user_fname'] = $row['user_fname']; $dummy_user->user_info['user_displayname'] = $row['user_displayname']; $dummy_user->user_displayname(); $row['user_photo'] = $dummy_user->user_photo('./images/nophoto.gif'); $row['user_displayname'] = $dummy_user->user_displayname; $row['profileview_views'] = intval($row['profileview_views']); $row['userpoints_rank'] = $rank++; $items[] = $row; } // ASSIGN VARIABLES $smarty->assign('items', $items); include "footer.php"; ?>