Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: \\\”$wpdb->prepare\\\” and LIKE \\\'%….%\\\'


John James Jacoby
Keymaster

@johnjamesjacoby

Try…

$more_sql['group'] = $wpdb->prepare("cm.meta_key = 'groups' AND cm.meta_value LIKE '%%$group%%'");

Skip to toolbar