help update mysql on plugin Ultimate Membership Pro

  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

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 />
 

About us

  • Babiato Forum - The webmaster 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, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu