I have code like this:
global $wpdb;
$wpdb->insert(
'name_of_table',
array(
'someInteger' => $surveyResult6,
'someString' => $surveyResult7
),
array(
'%d',
'%s'
)
);
// Increment database rows
$wpdb->insert_id;
echo $surveyResult7;
...and I have problem with insert string inside my table.
There' s no error, evrything seems to be fine but there's no new record in my database. If I change string to digit and submit form once again, there appear new row with two digits.
I' ve read some topics with problem like this one (wpdb and strings) but I don't find any clue how to fix it. Could anyone tell me what should I do?
'%d', hope this is copy paste error