I have code to the following effect:
foreach ($post_category as $key => $value) {
$playground = get_category($value);
$accat = $playground->cat_name;
$wpdb->query(...)
I thought adding this code: $post_category = addslashes($post_category);
Would allow me to enter data into the table even when the $post_category contained data that had apostrophes and the like in it. But this isn't happening. Does anyone know why?