php - How to fill all other files to "false" when adding data into a table in wordpress -
for example, let's there table consists of 7 fields. fill specific values 2 of them , set "false" remaining 5 fields.
for example,
global $wpdb; $table_name = $wpdb->prefix . "imlisteningto"; $wpdb->insert( $table_name, array( 'name' => $_post['name'], 'title' => $_post['title'] ) ); is there simple way set "false" remaining fields without specifying each field respectively?
thanks.
you can set default value rest fields false, means if not specify them in query filled automatically default one
Comments
Post a Comment