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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -