prepare("SELECT * FROM " . $wpdb->prefix . "swpm_membership_tbl WHERE id !=1 AND id =%d", $mem_level); $membership_level_resultset = $wpdb->get_row($query); if ($membership_level_resultset) { $pp_av_code = 'notify_url=' . $paypal_ipn_url . '
' . 'custom=subsc_ref=' . $mem_level; echo '

'; echo 'Paste the code below in the "Add advanced variables" field of your PayPal button for membership level ' . $mem_level . ''; echo '

' . $pp_av_code . ''; echo '

'; } else { echo '

'; SwpmUtils::e('Error! The membership level ID (' . $mem_level . ') you specified is incorrect. Please check this value again.'); echo '

'; } } echo '
'; echo '

'; SwpmUtils::e('You can create membership payment buttons from the payments menu of this plugin (useful if you want to offer paid membership on the site).'); echo '

'; echo '
'; ?>