0"; break; } // ------------------------------ $p_num = db_arr( "SELECT COUNT(*) FROM Profiles INNER JOIN aff_members ON (idProfile = ID) WHERE idAff = $AFF $prof_part $sex_part $extra_addon_part" ); $p_num = $p_num[0]; $pages_num = ceil( $p_num / $p_per_page ); $real_first_p = (int)($page - 1) * $p_per_page; $page_first_p = $real_first_p + 1; $result = db_res( "SELECT ID, Picture, Sex, LastLoggedIn, NickName, RealName, MerchantPrice, Status, start_date, next_billing_date, autorenew FROM Profiles INNER JOIN aff_members ON (idProfile = ID) WHERE idAff = $AFF $prof_part $sex_part $extra_addon_part ORDER BY LastModified DESC LIMIT $real_first_p, $p_per_page" ); $page_p_num = mysql_num_rows( $result ); $_page[header] = "Members' Profiles"; $_page[header_text] = "Members profiles sorted by modification date"; $_page[js] = 1; TopCodeAff(); ?>
No profiles available"; else { ?> >
 ID   Photo   Last Visited   NickName   Status   Sex   Start Billing Date   Next Expire / Billing Date   Autorenew