Answer the question
In order to leave comments, you need to log in
Why does $wpdb->update corrupt html code and how to fix it?
I make a request to update a record in the database:
$wpdb->update(
$wpdb->prefix . 'table', // указываем таблицу
array('url' => $_POST['url'],
'html_code' => $_POST['html_code'],
'post_type' => $_POST['post_type'],
'categ_name' => $categ,
'by_title' => $header
),
array( // где
'ID' => $_POST['post_id']
),
array( '%s' ),
array( // формат для «где»
'%d',
'%s',
'%d',
'%s',
'%s',
)
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question