title: How to access values from MySQL Table in a matrix pattern?
body: <pre>Cust_Id    Name      Phone
  --------------------------
  A001       John      88888
  A002       Smith     77777
  A003       Stella    66666</pre>
  
  <p>Currently I'm executing 3 queries like: <b>SELECT Name, Phone from tablename WHERE Cust_Id = 'A001'</b>.
  and similarly for A002 &amp; A003
  The above query would return : $row[Name], $row[Phone]. </p>
  
  <p>Is there any way in which I can run a single query and get the results as: $row[A001][Phone] or I could reference the values directly.</p>
  
  <p>The table has more than 3 tuples.</p>
  
  <p>Any help would be appreciated.</p>