title: PHP Mysqli select value for multiple values and show the same for relection
body: <p>I am trying to fetch multiple values for multiple data i know how to fetch for single data but am new to fetch multiple data </p>
  
  <p>say i want to select mobile number for id 1,2,3 and show the mobile number for same with"," is what i am not able to achive</p>
  
  <p>Expected</p>
  
  <ol>
  <li>Select data from Master_table For id"1,2,3"</li>
  <li>Show the Mobile_number of that particular id(s) as mention below .</li>
  </ol>
  
  <p>Database</p>
  
  <pre><code>Master_table
  name id  mobile_number
  abcd 1   123456789
  ssss 2   123456722
  sssd 3   123456733
  rrrr 4   123453389
  iiii 5   123444789
  </code></pre>
  
  <p>PHP</p>
  
  <pre><code>$query="SELECT  mobile_number FROM Master_table  WHERE  id='1,2,3'" ;
  $data=mysqli_query($mysqli,$query)or die(mysqli_error());
  
  while($row=mysqli_fetch_array($data)){
  
      echo $row['mobile_number'];
  
  }
  </code></pre>
  
  <p>expected result is </p>
  
  <pre><code>123456789,123456722,123456733
  </code></pre>