title: Executing multiple SQL queries in one statement with PHP
body: <p>How to join those multiple queries into one (can I?)</p>
  
  <pre><code>$query = "DELETE FROM aktywne_kody WHERE kodsms ='$kodSMSgracza' AND typkodu ='$id'";
  mysql_query($query) or die(mysql_error());
  
  $query = "INSERT INTO uzyte_kody (gracz, kodsms, typkodu) VALUES ('$nickGracza', '$kodSMSgracza', '$id')";
  mysql_query($query) or die("Błąd MySQL X04");
  
  $query = "INSERT INTO do_odebrania (gracz, itemDATA, itemQTY) VALUES ('$nickGracza', '$itemDATA', '$itemQTY')";
  mysql_query($query) or die("Błąd MySQL X05");
  </code></pre>
  
  <p>By the way is it better if I do mysql_close($db) after all queries are done?</p>