title: php echo is displaying semicolon also
body: <p>php echo is displaing the semicolon which is suppose to end echo like this :</p>
  
  <p>here is the code </p>
  
  <pre><code>   &lt;html&gt;
  &lt;head&gt;
      &lt;style&gt;
  
  
      &lt;/style&gt;
  &lt;link rel='stylesheet' type='text/css' href='main2.css' /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "";
  $dbname = "movie_db";
  $srchq = $_POST['srch'];
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
       die("Connection failed: " . $conn-&gt;connect_error);
  } 
  $srchq = preg_replace("#[^0-9a-z]#i", "", $srchq);
  
  $sql = "SELECT * FROM `movie_db` WHERE `title` LIKE '%$srchq%' OR `sr_no` LIKE '%$srchq%' ";
  $result = $conn-&gt;query($sql);
  
  if ($result-&gt;num_rows &gt; 0) {
       echo "&lt;p1&gt;";
       // output data of each row
       while($row = $result-&gt;fetch_assoc()) 
  
           echo ("&lt;a href=".$row["movie"]."&gt;&lt;img src =" . $row["poster"]. "&gt;&lt;/a&gt;&lt;/p1&gt;&lt;p2&gt;&lt;b&gt;&lt;a href=" .$row["movie"]."&gt;" . $row["title"]. "&lt;/a&gt;&lt;/b&gt;&lt;/p2&gt;&lt;br&gt;&lt;p3&gt;&lt;b&gt;Duration : &lt;/b&gt;".$row["Duration"]." Mins&lt;/p3&gt; ;&amp;nbsp&lt;p3&gt;&lt;b&gt; Views : &lt;/b&gt; ".$row["views"]."&lt;/p3&gt;&lt;br&gt;&lt;div&gt;&lt;p3&gt;&lt;b&gt;Description :&lt;/b&gt;".$row["descrip"]."&lt;/p3&gt;&lt;/div&gt;&lt;br&gt;");
   mysql_close(mysql_connect($servername, $username, $password));
  }
  else {
       echo "0 results";
  }?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>if anyone could tell me why is that happening it would be helpful.</p>
  
  <p>it seems that the semicolon appearing is </p>
  
  <pre><code>echo ("&lt;a href=".$row["movie"]."&gt;&lt;img src =" . $row["poster"]. "&gt;&lt;/a&gt;&lt;/p1&gt;&lt;p2&gt;&lt;b&gt;&lt;a href=" .$row["movie"]."&gt;" . $row["title"]. "&lt;/a&gt;&lt;/b&gt;&lt;/p2&gt;&lt;br&gt;&lt;p3&gt;&lt;b&gt;Duration : &lt;/b&gt;".$row["Duration"]." Mins&lt;/p3&gt; ;&amp;nbsp&lt;p3&gt;&lt;b&gt; Views : &lt;/b&gt; ".$row["views"]."&lt;/p3&gt;&lt;br&gt;&lt;div&gt;&lt;p3&gt;&lt;b&gt;Description :&lt;/b&gt;".$row["descrip"]."&lt;/p3&gt;&lt;/div&gt;&lt;br&gt;");
  </code></pre>