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
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