php - $wpdb->insert not working, last_query doesn't show insert "SHOW FULL COLUMNS FROM" -


i run $wpdb->insert($table, $data) data array column_name => value , insert not working. tried $wpdb->last_query , bizarre comes back:

show full columns `table_im_trying_to_insert` 

why last query not insert?

i found problem. apparently new wp update if try insert varchar column , column length less trying insert won't work. prior update insert trim off excess characters.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -