insert data to table in wordpress 2

Solutions on MaxInterview for insert data to table in wordpress 2 by the best coders in the world

showing results for - "insert data to table in wordpress 2"
Irene
29 Oct 2016
1if ( isset( $_POST['submit'] ) ){
2
3         global $wpdb;
4         $tablename = $wpdb->prefix.'post_job';
5
6        $wpdb->insert( $tablename, array(
7            'organizationname' => $_POST['organizationname'], 
8            'post' => $_POST['post'],
9            'publishfrom' => $_POST['publishfrom'], 
10            'publishupto' => $_POST['publishupto'],
11            'qualification1' => $_POST['qualification1'], 
12            'qualification2' => $_POST['qualification2'], 
13            'qualification3' => $_POST['qualification3'],
14            'qualification4' => $_POST['qualification4'], 
15            'experience1' => $_POST['experience1'], 
16            'experience2' => $_POST['experience2'],
17            'experience3' => $_POST['experience3'], 
18            'training1' => $_POST['training1'], 
19            'training2' => $_POST['training2'], 
20            'training3' => $_POST['training3'],
21            'training4' => $_POST['training4'], 
22            'training5' => $_POST['training5'] ),
23            array( '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) 
24        );
25    }
26
Hannah
13 Aug 2019
1<?php
2
3if ( isset( $_POST['submit'] ) ){
4
5    global $wpdb;
6
7
8    $tablename=$wpdb->prefix.'post_job';
9
10    $data=array(
11        'organizationname' => $_POST['organizationname'], 
12        'post' => $_POST['post'],
13        'publishfrom' => $_POST['publishfrom'], 
14        'publishupto' => $_POST['publishupto'],
15        'qualification1' => $_POST['qualification1'], 
16        'qualification2' => $_POST['qualification2'], 
17        'qualification3' => $_POST['qualification3'],
18        'qualification4' => $_POST['qualification4'], 
19        'experience1' => $_POST['experience1'], 
20        'experience2' => $_POST['experience2'],
21        'experience3' => $_POST['experience3'], 
22        'training1' => $_POST['training1'], 
23        'training2' => $_POST['training2'], 
24        'training3' => $_POST['training3'],
25        'training4' => $_POST['training4'], 
26        'training5' => $_POST['training5'] );
27
28
29     $wpdb->insert( $tablename, $data);
30}
31
32?>
33
queries leading to this page
wordpress insert into two tableshow to store data to new table wordpressinsert row custom table wordpressadd data to database table wordpressinsert data in wordpressinsert data into table in wordpresshow to insert data in wordpress database tableinsert data from table in wordpresshow to insert data in table in wordpresscreate table and insert data in wordpress plugininsert data into database in wordpresswordpress insert tablewp insert data into tablewordpress insert data in tablewordpress insert data into tablewordpres create custom table and insert datainsert data into table wordpress plugininsert into table wordpressinsert data in wordpress optionswordpress insert data in custom table insert data into database wordpressinsert data to wordpress any tablewordpress insert into tablehow to insert data into table in wordpresswordpress query for insert data to custom tableinsert data query in wordpresswordpress plugin development insert data into tableinserting data into two table in wordpresshow to insert data to database in wordpressinsert data in custom table wordpresswordpress insert data to my own tablewordpress plugin insert data into tableinsert data table wordpress plugininsert tem into table using query wordpressinsert data to table in wordpress 2wordpress how to insert data into databaseinsert data to database wordpresswp insert data in table programmaticallyhow to connect and insert data in wordpress databasehow to insert data in mysql using wordpressinsert into wordpress tablewordpress insert data into custom tablequery to insert data in wp tablewordpress how to insert data into two tables in wordpress wpdb programaticallyinsert data into table in wordpress using form wordpress insert data to custom tableinsert data to table in wordpress 2