WPDB loop parameter

Question

How can i loop the the parameter in wpdb? i echo $b[‘id’]; to show the id result in the image.

function company_reviews($id) {
  global $wpdb;
  $bb = json_encode($id);
  $b = json_decode($bb, true);
  $myrows = $wpdb->get_results( "select post_title from wp_posts where id='".$b['id']."' " );
}

enter image description here

0
, Jhonray Angcon 3 years 2019-12-06T02:52:49-05:00 0 Answers 89 views 0

Leave an answer

Browse
Browse