Adding new record to DB by $wpdb->insert()
-
Hi,
I’m trying to create code, which adds new record to DB wp_term_relationships, but it’s not working
My code:$wpdb->insert( $wpdb->term_relationships, array( 'object_id' => $id, 'term_taxonomy_id' => '60', 'term_order' => '0' ) );
Don’t know where is my bad… I tried probably 452 combinations of $wpdb->insert()… and not even one record was added to my DB. Can anyone help me?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding new record to DB by $wpdb->insert()’ is closed to new replies.