userid); echo "".user_links($user)."".date_str($user->create_time)."".$user->country."".(int)$user->total_credit."".(int)$user->expavg_credit."\n"; } db_init(); $search_string = get_str('search_string'); $offset = get_int('offset', true); if (!$offset) $offset=0; $count = 10; page_head("Profile search results"); echo "

Profiles containing '$search_string'

\n"; $q = "select * from profile where match(response1, response2) against ('$search_string') limit $offset,$count"; $result = mysql_query($q); echo " "; $n = 0; while ($profile = mysql_fetch_object($result)) { show_profile_link($profile, $n+$offset+1); $n += 1; } echo "
User name Joined project Country Total credit Recent credit
"; mysql_free_result($result); if ($offset==0 && $n==0) { echo "No profiles found containing '$search_string'"; } if ($n==$count) { $s = urlencode($search_string); $offset += $count; echo " Next $count "; } page_tail(); ?>