title: Multiple variables as table name
body: <p>I currently am working with this:</p>
  
  <pre><code>$sql="INSERT INTO $tables(serial,date,type,file,size) VALUES('$serial','$date','$test','$final_file','$new_size')";
          mysql_query($sql);
  </code></pre>
  
  <p>Where $tables is a sigle variable. I now need to replace $tables with names like "sam_coll" using two different variables such as $device and $test as below;</p>
  
  <pre><code>$sql="INSERT INTO $device_$test(serial,date,type,file,size) VALUES('$serial','$date','$prova','$final_file','$new_size')";
  </code></pre>
  
  <p>The page then gives me "unexpected '_' (T_STRING)". 
  How does the table name need to be written?</p>