Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try changing bp-group-control to BP-Group-Control. It is possible that I named the folder wrong in the plugin, i’ll fix it if that’s the case.

    Thanks for trying out my plugin, please let me know if anything else is going wrong!

    You have to do it like this:

    $strQuery = "UPDATE wp_eventuser_tbl SET fname = %s, lname = %s, active = %d WHERE id = %d";
    
    $wpdb->query($wpdb->prepare( $strQuery, "Steven", "Nowickcow", 0, 10 ) );

    You can’t set a variable equal to a quoted string plus a list of unquoted values. PHP doesn’t understand that you want to move that whole thing as a bunch of different arguments for $wpdb->prepare.

Viewing 2 replies - 1 through 2 (of 2 total)