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?
-
There is no database access for wordpress.COM bloggers. That site is not on our WordPress.COM servers. You are posting to the wrong support forum.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
This is wordpress.COM support. We provide support only for wordpress.COM hosted sites. Our support docs do not apply to
(1) local installs of wordpress.ORG software on your own server or
(2) wordpress.ORG software installs on paid hosting, and we do not provide support for them at wordpress.COM.
(3) sites linked to wordpress.COM accounts with the Jetpack plugin so they display on the My Sites wordpress.com account page.The wordpress.ORG login link is here https://login.wordpress.org/ If you do not have an account yet then click Create an account https://login.wordpress.org/register/ and if you have lost an account password click Lost password? https://login.wordpress.org/lostpassword/
Some Jetpack solutions are here http://jetpack.com/support/
Others are in the Jetpack support forum at WordPress.org
http://wordpress.org/support/plugin/jetpackHowever, if help cannot be found at either one then they can file a Jetpack support ticket here > http://en.support.wordpress.com/contact/?jetpack=needs-service
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/ for app support.
- The topic ‘Adding new record to DB by $wpdb->insert()’ is closed to new replies.