$wpdb->insert – Truncated Value
-
I am using $wpdb->insert to update content from a CSV file and everything i working perfectly except the phone numer. In the CSV file it say 215-545-9153 but when I insert the data into the database it only captures 215.
I have the array format for that value set to string %s and the mysql value for that value is set to varchar(16) utf8_general_ci.
I cannot understand why it truncates the value at the dash. I can’t find anything online with people having similar issues.
I could sure use some feedback from someone smarter than me regarding this type of work.
TIA.
- The topic ‘$wpdb->insert – Truncated Value’ is closed to new replies.