There is a piece of code that does not work.
$email = strval(get_option( 'email_who_paid' )); $amount = get_option( 'amount_paided' ); $period = get_option( 'license_duration' ); $date = strval(date("Ymd")); $wpdb->query("CALL ExtendLicense( $email, $period, $amount, $date )"); $wpdb->query('COMMIT'); If you replace the two variables with just the value of the commit occurs
$email = strval(get_option( 'email_who_paid' )); $amount = get_option( 'amount_paided' ); $period = get_option( 'license_duration' ); $date = strval(date("Ymd")); $wpdb->query("CALL ExtendLicense( 'some@gmail.com', $period, $amount, '2018-02-02' )"); $wpdb->query('COMMIT'); What am I doing wrong?
$email'some@gmail.com'instead of$email. Do you have these framing quotes in the variable? - Akina