• Resolved Spencer Hill

    (@ws5f3dj7)


    This data isn’t being updated in the database, can someone help me understand why?

    elseif (isset($update_this_slideshow_button)) {
    
    	global $table_name;
    	global $id;
    	global $title;
    	global $category;
    	global $max_slides_to_display;
    	global $theme;
    
    	$wpdb->insert( $table_name, array( 'title' => $title, 'category' => $category, 'max_slides_to_display' => $max_slides_to_display, 'theme' => $theme), array( 'id' => $id ) );
    
    	$successfully_updated_message = '<div class="updated"><p>' . $title . ' has been updated.</p></div>';
    
    }

Viewing 1 replies (of 1 total)
  • Thread Starter Spencer Hill

    (@ws5f3dj7)

    Ah, figured it out, my button used title=”” instead of name=”” so it wasn’t recognizing the submit.

Viewing 1 replies (of 1 total)
  • The topic ‘$wpdb->insert, need help…’ is closed to new replies.