title: Good practice for generating complex reports (MySQL/PHP)
body: <p>PHP mysql_query function doesn't allow multiple queries, which limits maximal report complexity. What is the best practice, if I need really complex reports generated, which require multiple temp tables and multiple queries?</p>
  
  <p><strong>UPDATE:</strong> My question is more about how to use MySQL complex queries in PHP, if mysql_query only allows single query?</p>