title: PHPmyadmin , mySQL. how to select multiple table
body: <p>I have problem to echo from two tables from the database. How to select two tables from database with has condition? </p>
  
  <pre><code>&lt;?php session_start(); 
    $con=mysql_connect("localhost","root","");
    $db=mysql_select_db("fyp2", $con);  
    $username=$_SESSION['username'];   
    $query="SELECT * FROM customer WHERE username='$username'";
    $result=mysql_query($query);      
    $row=mysql_fetch_array($result);  
  ?&gt;
  </code></pre>
  
  <p>In this situation, only one table can display, another table that i has insert it display no output.</p>