What is wrong with this "for dummies" PHP code?
<p>I am running PHP5 on a free web server and I am trying to learn PHP reading a "for dummies" book...It gives me some code to run and for some infuriating reason I get errors on every line that echos HTML.</p>

<p>here is the code. specifics have been Xed out but they are accurate:</p>

<pre><code>&lt;?php
/* Program: mysql_up.php
* Desc: Connects to MySQL Server and
* outputs settings.
*/
echo “&lt;html&gt;
&lt;head&gt;&lt;title&gt;Test MySQL&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;”;
$host=”XXXX”;
$user=”XXXX”;
$password=”XXXX”;
$cxn = mysqli_connect($host,$user,$password);
$sql=”SHOW STATUS”;
$result = mysqli_query($cxn,$sql);
if($result == false)
{
echo “&lt;h4&gt;Error: “.mysqli_error($cxn).”&lt;/h4&gt;”;
}
else
{
/* Table that displays the results */
echo “&lt;table border=’1’&gt;
&lt;tr&gt;&lt;th&gt;Variable_name&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;”;
for($i = 0; $i &lt; mysqli_num_rows($result); $i++)
{
echo “&lt;tr&gt;”;
$row_array = mysqli_fetch_row($result);
for($j = 0;$j &lt; mysqli_num_fields($result);$j++)
{
echo “&lt;td&gt;”.$row_array[$j].”&lt;/td&gt;\n”;
}
}
echo “&lt;/table&gt;”;
}
?&gt;
&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>Whenever it gets to a line that echos HTML I get this error or similar:</p>

<p>Parse error: syntax error, unexpected '>' in /home/a7613610/public_html/mysql_up.php on line 6</p>

<p>I want to learn PHP but when it reports errors in supposedly good code it makes me not want to.</p>
