php html table Q
<p>I'M TRYING TO CREAT A (10*10) TABLE WITH LOOP USING PHP </p>

<p>THIS IS MY CODE </p>

<pre><code>$i=0;
$x=0;

echo "&lt;table&gt;";
while ($i&lt;10)
{
echo "&lt;tr&gt;";

while ($x&lt;10)
{
echo "&lt;td&gt;2";
echo "&lt;td&gt;";
$x++;
}

echo "&lt;/tr&gt;";
$i++;
}
echo "&lt;/table&gt;";
</code></pre>

<p>why is it echoing only the  tag  </p>
