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
Post a Comment