how to use mysql instr function in wordpress
-
Hello,
I am trying to write a mysql query using the $wpdb object, but so far I am getting a mysql syntax error and empty returned record set. My code is
$postID = $wpdb->get_results( "SELECT ID FROM $wpdb->posts where instr(post_content, ']') > 0");
Thank you,
KC
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘how to use mysql instr function in wordpress’ is closed to new replies.