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 1 year 0 Answers 89 views 0

Leave an answer