title: Displaying records from a table with PHP
body: <p>Sorry for the newbie question, but I am working on my first PHP script and I can't seem to make it work. I just want to display the records from a single MySQL table. I have been trying to do this for ages and it is not displaying anything except the first two echo statements, before it is supposed to pull out the data.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>&lt;?php
    mysql_connect("localhost", "me", "mypass") or die(mysql_error());
    echo "Connection to the server was successful!&lt;br/&gt;";
  
    mysql_select_db("test") or die(mysql_error());
    echo "Database was selected!&lt;br/&gt;";
  
    $result = mysql_query("SELECT * FROM Customer");
  
    while($row = mysql_fetch_assoc($result)){
    echo "ID: ".$row['customer_id'].", Name:".$row['customer_name']
    ."&lt;br/&gt;";
    }
  ?&gt;
  </code></pre>