function sanitizeFormValue($str) {
	    $str = trim($str);
	    if(get_magic_quotes_gpc()) {
		    $str = stripslashes($str);
	    }
	    return $this->connection->real_escape_string($str);
	}
function sanitizeFormValue($str) {
	    $str = trim($str);
	    if(get_magic_quotes_gpc()) {
		    $str = stripslashes($str);
	    }
	    return $this->connection->real_escape_string($str);
	}
function sanitizeFormValue ( $ str ) { $ str = trim ( $ str ) ; if ( get_magic_quotes_gpc ( ) ) { $ str = stripslashes ( $ str ) ; } return $ this -> connection -> real_escape_string ( $ str ) ; }
Function to sanitize values received from the form. Prevents SQL injection.

@param   mixed   $str
@return  mixed
Function to sanitize values received from the form . Prevents SQL injection .