member_id = $_SESSION['ss_member_id']; $auth->member_type = $_SESSION['ss_member_type']; $member_id = $auth->member_id; //prepopulating the forms if data is available if ($member_id!="" && $_SESSION['isPostBack']=="")//member; first time view of the page { //prepopulating form db - preferences table $pref_query = "SELECT members.gender, preferences.* FROM preferences INNER JOIN members ON preferences.member_id = members.id WHERE members.id ='".$member_id."'"; $pref_rs = $conn->query($pref_query); $pref = $conn->fetch_array($pref_rs); $country=$pref["country"]; $region = $pref['region']; $city = $pref['city']; $distance = $pref['distance']; $zip = $pref['zip']; $gender = $pref['gender']; $desiredPartner = $pref['desired_gender']; $minAge = $pref['min_age']; $maxAge = $pref['max_age']; $chkPictures = $pref['only_pict']; $chk_instructors = $pref['you_teach']; $disciplines_code = $pref['discipline_code']; $interests_code = $pref['interest_code']; } elseif ($_SESSION['isPostBack']!="") // member or visitator - postback { $country = loadAndClearSavedField("country", "basicSearch"); $region = loadAndClearSavedField("region", "basicSearch"); $city = loadAndClearSavedField("city", "basicSearch"); $distance = loadAndClearSavedField("distance", "basicSearch"); $zip = loadAndClearSavedField("zip", "basicSearch"); $gender = loadAndClearSavedField("gender", "basicSearch"); $desiredPartner = loadAndClearSavedField("desiredPartner", "basicSearch"); $minAge = loadAndClearSavedField("minAge", "basicSearch"); $maxAge = loadAndClearSavedField("maxAge", "basicSearch"); $chkPictures = loadAndClearSavedField("chkPictures", "basicSearch"); $chk_instructors = loadAndClearSavedField("chk_instructors", "basicSearch"); $chk_practitioners = loadAndClearSavedField("chk_practitioners", "basicSearch"); $disciplines_code = loadAndClearSavedField("disciplines_code", "basicSearch"); $interests_code = loadAndClearSavedField("interests_code", "basicSearch"); $_SESSION['isPostBack']=""; } if ($minAge==0) $minAge=""; if ($maxAge==0) $maxAge=""; //end prepopulating //creating the drop-down lists and jump menus //1. Country $country_select = new CSelect($country,$conn); $available_countries=get_available_countries(); $country_select_labels = array_values($available_countries); $country_select_values = array_keys($available_countries); //2. Region (displayed only if a country has been selected) $region_select = new CSelect($region,$conn); $available_regions=get_available_regions($country); $region_select_labels = array_values($available_regions); $region_select_values = array_keys($available_regions); //3. distance /* $distance_select = new CSelect($distance,$conn); $distance_select_labels = array_values($appearance[13]); $distance_select_values = array_keys($appearance[13]); */ //4. gender $gender_select = new CSelect($gender,$conn); $gender_values = array("2","1","0"); $gender_labels = array("","Male","Female  "); //5. desiredPartner $desiredPartner_select = new CSelect($desiredPartner,$conn); $desiredPartner_values = array("2","1","0"); $desiredPartner_labels = array("Any","Male","Female  "); //end (selects) //5.Practiced discplines $disciplines_chk = new CCheckBoxArray("disciplines_chk",$conn); $disciplines_chk->set_cols(4); //$disciples_js_arr = create_js("weight_chk",$weight_num_options); $query="SELECT * FROM disciplines ORDER BY position"; $disciplines_res=$conn->query($query); $disciplines_arr=resource2array($disciplines_res,"discipline","discipline_id"); //$disciplines_arr=array_insert($disciplines_arr,1,0,"Any");//insert Any option $disciplines_code_arr = code2arr($disciplines_code); $disciplines_checked_arr = code_arr2checked_arr($disciplines_code_arr, $disciplines_arr); $disciplines_chk->arr2chk(array_keys($disciplines_arr),array_values($disciplines_arr),'',$interests_js_arr,$disciplines_checked_arr); //6.Member interests $interests_chk = new CCheckBoxArray("interests_chk",$conn); $interests_chk->set_cols(4); $query="SELECT * FROM interests ORDER BY position"; $interests_res=$conn->query($query); $interests_arr=resource2array($interests_res,"interest","interest_id"); $interests_code_arr = code2arr($interests_code); $interests_checked_arr = code_arr2checked_arr($interests_code_arr, $interests_arr); $interests_chk->arr2chk(array_keys($interests_arr),array_values($interests_arr),'',$interests_js_arr,$interests_checked_arr); show_page_title("Search","Basic search"); ?>

To find a user by their username, use the keyword search on this page.
You can also search the rest of the site for a keyword. Just use the Site Search button from the left menu or click here.

Search tips:
To help with your search, make sure you complete your profile and set your preferences "as wide" as possible. Completing your profile will also help others find you!

You may also load the preset values from preferences or clear all the filter criteria .