Search
 
SCRIPT & CODE EXAMPLE
 

PHP

insert into wp table

global $wpdb;
$table = $wpdb->prefix.'you_table_name';
$data = array('column1' => 'data one', 'column2' => 123);
$format = array('%s','%d');
$wpdb->insert($table,$data,$format);
$my_id = $wpdb->insert_id;
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress wpdb insert debug 
Php :: get one column in all associative array in collection laravel 
Php :: how get just one parameter of all objects in one array in laravel 
Php :: PHP dynamic property name 
Php :: php change an associative array into indexed array 
Php :: acf repeater example count 
Php :: php string ends with 
Php :: how to check if input is number only in php 
Php :: php object to xml 
Php :: migration make 
Php :: webuzo set upload limit 
Php :: laravel migrate specific file 
Php :: register acf options page 
Php :: console.log in php 
Php :: I need help 
Php :: php show number 4 digit 
Php :: add csrf token laravel 
Php :: get php to send email from form 
Php :: laravel get path to storage folder 
Php :: get file name from file path in php 
Php :: centos excecutable php 
Php :: for i php 
Php :: forever loop php 
Php :: wp_query item count 
Php :: escape url string php 
Php :: php current date get 
Php :: laravel new project command 
Php :: remove link from product name in woocommerce cart 
Php :: Get color code from string 
Php :: php is scan dir recursive? 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =