WordPress.org

Ready to get started?Download WordPress

Forums

$wpdb->insert (2 posts)

  1. mplysiak
    Member
    Posted 2 years ago #

    When i use $wpdb->insert it will insert the first record but when i try to run it again to insert another record it is not adding it.

    $company_info = array(
    'company_name' => $_POST['company_name'],
    'company_description' => $_POST['company_description']
    );
    $wpdb->insert(
    $wpdb->prefix.'dd_companies',
    $company_info
    );

  2. mplysiak
    Member
    Posted 2 years ago #

    never mind i did not have the key set to auto increment.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags