Anything I try does not work. My custom button simply does not execute function. Even echo not work.
Yes, I’ll check out the link. Thank you.
I think the problem is that button. When I call the function on page load without necessity of button click, it works great.
No, it uses <?php $wpdb->insert( $table, $data, $format ); ?> method from https://codex.ww.wp.xz.cn/Class_Reference/wpdb
The function looks like this:
$wpdb->insert('wp_scores',
array(
'first_name'=>$match_options['first_nameP'],
'last_name'=>$match_options[last_nameP],
'forfeit'=>'1',
'lost'=>'1',
'lost_in_3'=>'1',
'l_gem'=>'1',
'l_set'=>'1',
'point'=>'1',
'v_gem'=>'1',
'v_set'=>'1',
'win'=>'1'
),
array('%s','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d')
);
I’m sure the function works.