        <?php

		require_once( 'dbconnect.php' );

        $user_login = $_POST['user_login'];
        $first_name = $_POST['first_name'];
        $last_name = $_POST['last_name'];
        $user_email = strtolower($_POST['user_email']);
        $user_group = $_POST['user_group'];
        $user_data = $_POST['user_data'];
        $is_admin = $_POST['is_admin'];
        $id = $_POST['element_id'];
        $q = "UPDATE wp_users SET ";
        if (isset($user_login)) {
            $q .= " user_login = '$user_login'";
        }
        if (isset($first_name)) {
            $q .= " first_name = '$first_name'";
        }
        if (isset($last_name)) {
            $q .= " last_name = '$last_name'";
        }
        if (isset($user_email)) {
            $q .= " user_email = '$user_email'";
        }
        if (isset($user_group)) {
            $q .= " group_id = '$user_group'";
        }
        if (isset($user_data)) {
            $q .= " user_data = '$user_data'";
        }
        if (isset($is_admin)) {
            $q .= " is_admin = '$is_admin'";
        }
        if (isset($id)) {
            $q .= " WHERE id = $id";
        }

		
        $res = mysql_query($q);

        $result = "";
        if (isset($user_login)) {
            $result .= "$user_login ";
        }
        if (isset($first_name)) {
            $result .= "$first_name ";
        }
        if (isset($last_name)) {
            $result .= "$last_name ";
        }
        if (isset($user_email)) {
            $result .= "$user_email ";
        }
        if (isset($user_group)) {
            $result .= "$user_group ";
        }
        if (isset($is_admin)) {
            $result .= "$is_admin ";
        }
        if (isset($user_data)) {
            $result .= "$user_data ";
        }
		
		echo $result;
		
				
        $result = "";
        if (isset($user_login)) {
            $result .= "$user_login";
        }
        if (isset($first_name)) {
            $result .= "$first_name";
        }
        if (isset($last_name)) {
            $result .= "$last_name";
        }
        if (isset($user_email)) {
            $result .= "$user_email";
        }
        if (isset($user_group)) {
            $result .= "$user_group";
        }
        if (isset($is_admin)) {
            $result .= "$is_admin ";
        }
        if (isset($user_data)) {
            $result .= "$user_data ";
        }
		
		?>