display data from sql database to html table in apache2 server : <p>I'm beginner in php and html so I need your help.
I am trying to display data from my sql database created using phpmyadmin , to a php page.</p>

<p>I've searched the internet and found similar topics , but still have problems</p>

<p>DB: wban ...</p>

<p>Table name: Jack ...</p>

<p>columns to be displayed: Temprature ,pulse , Motion ...</p>

<p>Here is my code , a blank page appear when request "localhost/Jack.php"  </p>

<pre><code>&lt;?php

$conn=mysql_connect('localhost', 'root', 'MYPASSWORD'); 
mysql_select_db('wban');


   if(! $conn ) {
  die('Could not connect: ' . mysql_error());
         }

$query = "SELECT * FROM Jack"; 
$result = mysql_query($query);

?&gt;

&lt;html&gt;
&lt;head&gt; &lt;title&gt; Jack Status &lt;/title&gt; &lt;/head&gt;
&lt;body&gt;

&lt;table width="600" border="1" cellpadding="1" cellspacing="1"&gt;
&lt;tr&gt; &lt;!-- header row --&gt;
&lt;th&gt;Data&lt;/th&gt;
&lt;th&gt;Latest Readings&lt;/th&gt;
&lt;th&gt;Average&lt;/th&gt;
&lt;th&gt;Standard Deviation&lt;/th&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;/tr&gt;

&lt;?php

while($row = mysql_fetch_assoc($result)){   //Create a loop to loop through results
    echo "&lt;tr&gt;"
    echo "&lt;td&gt;.$row['Temprature'].&lt;/td&gt;"    
    echo "&lt;td&gt;.$row['Pulse'].&lt;/td&gt;"
    echo "&lt;td&gt;.$row['Motion'].&lt;/td&gt;"
    echo "&lt;/tr&gt;"
   }//end while
mysql_close(); //close out the database connection
?&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
