help update mysql on plugin Ultimate Membership Pro

sixnull

New member
Apr 7, 2020
6
0
1
can not update


php
a
Code:
        /* Get user info. */
        global $current_user, $wp_roles;
        get_currentuserinfo();
        global $wpdb;
       
       
     if ( !empty( $_POST['submit'] ) )
     {
       
        $user_id = get_current_user_id();
       
        $wpdb->update($table->wp_ihc_user_levels, array('hwid' => $_POST['textbox_hwid']), array('ID' => $user_id));
   
     }

html

Code:
<form action="" method="post">

<hr >
    <input type="text" name="textbox_hwid" placeholder="GET A same text " />
    <input type="submit" name="submit"  />
<hr />
 

Forum statistics

Threads
69,765
Messages
912,277
Members
242,633
Latest member
houssamx

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu