global $wpdb;
    $wpdb->insert('wp_outbox', array( 
		'pesan' => $pesan, 
		'notujuan' => $notujuan,

hii. i’m gonna trying to insert some data to database but it doesn’t work. after write the code where should i put that .php file ? it is in the article/page (on wordpress). or in the htdocs/wordpress ?

thanks for the answer and sorry for my bad english

Read more here: where should i put the .php file on wordpress?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: