title: Weird output using html tables
body: <p>Here is the php code:</p>
  
  <pre><code>&lt;?php
  require_once('../phpFunctions/funciones.php');
  conectar('localhost', 'root', '*******', 'tutoriales');
  
  echo "&lt;table cellspacing=\"0\" border=\"1\" cellpadding=\"0\"&gt;";
  for ($x = 0; $x &lt;= 9; $x++) {
      echo "&lt;tr&gt;";
      for ($y = 0; $y &lt;= 9; $y++) {
          $numero = $x."".$y;   
          $region = (int)$numero;
          $sentencia = @mysql_query('select type,region from tutorial1_estrellas where region='.$region.'');
          $lanzar = @mysql_fetch_object($sentencia);
          if($lanzar[1]==$region){
              switch ($lanzar[0]) {
              case "red":
              echo "&lt;td&gt;&lt;img src=\"../images/redRegion.png\"&gt;&lt;/td&gt;";   
              break;
              case "yellow":
              echo "&lt;td&gt;&lt;img src=\"../images/yellowRegion.png\"&gt;&lt;/td&gt;";   
              break;
              case "blue":
              echo "&lt;td&gt;&lt;img src=\"../images/blueRegion.png\"&gt;&lt;/td&gt;";   
              break;
          }
      } else  
          echo "&lt;td&gt;&lt;img src=\"../images/voidRegion.png\"&gt;&lt;/td&gt;";   
      }   
      echo "&lt;/tr&gt;";
  }
  echo "&lt;/table&gt;";
  ?&gt;
  </code></pre>
  
  <p>The HTML output looks like a huge ECHO but not a normal table, is this an error or this is normal output in php? I'm new to PHP so please bear with me.</p>
  
  <p>OUTPUT: </p>
  
  <p><code>"; for ($x = 0; $x "; for ($y = 0; $y if($lanzar[1]==$region){ switch ($lanzar[0]) { case "red": echo ""; break; case "yellow": echo ""; break; case "blue": echo ""; break; } }else echo ""; } echo ""; } echo ""; ?&gt;</code></p>
  
  <p>The loop makes a 10x10 table where the images of each cell are defined by the result of the SQL query in the switch.</p>