/ Published in: PHP
- $field1 = "Andy Peatling";
- $field2 = "It's like that, and that's the way it is.";
- $wpdb->query( $wpdb->prepare( "INSERT INTO $wpdb->sometable( id, field1, field2 ) VALUES ( %d, %s, %s )", $_POST['id'], $field1, $field2 );
You need to login to post a comment.