Hi there !
I would like to bind values in a $wpdb->prepare query, but I really don't know how to do this.
For exemple :
// Values $bindValues = array('value1', 'value2'); // SQL Query $select = $wpdb->get_results( $wpdb->prepare( SELECT COUNT(ID) AS total, MATCH (display_name) AGAINST ('%s') AS score FROM wp_users WHERE MATCH (display_name) AGAINST ('%s') HAVING score > 0, implode(',', $bindValues) );
This of course doesn't work, so is there any functions / solutions to do it ?
Thank's by advance.