title: execute multiple statements in one mysql query
body: <p>i need your help. I'm implementing a small ecommerce site and im executing two queries to get the result as follows:</p>
  
  <p>My database table 'cart'</p>
  
  <pre><code>id  itemid  qty   price   customerid
  1    item1   1    2500        1 
  2    item2   1    11000       1 
  </code></pre>
  
  <p>I need to get 'item1' price, so i'm using following query</p>
  
  <pre><code>SELECT qty, price FROM cart WHERE itemid='item1';
  </code></pre>
  
  <p>I also need to get sum of all items prices based on customerid so i'm using following one.</p>
  
  <pre><code>SELECT SUM(price) AS totalprice, COUNT(*) AS totalitems FROM cart WHERE customerid='1';
  </code></pre>
  
  <p>How to get the two results by executing query at once using mysql_query() in php mysql; </p>
  
  <p>Thanks in advance!</p>