$wpdb->get_results and LIKE expression
-
$query = "SELECT * FROM table WHERE col LIKE '%name%'"; $funds = $wpdb->query($query); echo count($funds);
this results in the wrong number of records returned. But when i use phpMyAdmin it gives the right number of records.
- The topic ‘$wpdb->get_results and LIKE expression’ is closed to new replies.