title: Pulling data from mysql based on Array
body: <p>I have a file <code>file.php</code> and inside my file I am using the code bellow to pull some data from my database and display some information.</p>
  
  <p>My code is</p>
  
  <pre><code>$array = $_GET['theurl']; // My url looks like myfile.php?theurl=1,2,3 (id,s)
  $sqlnt4 = "select * from mytable WHERE `id` IN ($array)";
  $rsdt4 = mysql_query($sql);
  $tc4a = mysql_fetch_assoc($rsdt4);
  $mycomma4 = ",";
  if ($tc4a['a_youtube'] == "#"){
  }else{
      while ($tc4 = mysql_fetch_assoc($rsdt4))
      {
          echo $tc4['a_youtube'];
          echo ",";
      }
  }
  </code></pre>
  
  <p>I expect to echo the infos of the two <code>id's</code> (in array) inside my while function, but it returns the results only from the first.</p>
  
  <p>Any ideas?</p>