title: Php unknown error
body: <pre><code>&lt;?php
      $con=mysqli_connect("localhost","root","","uplod");
      if (mysqli_connect_error()) {
          echo "Failed to connect to MySQL: " . mysqli_connect_error();
      } else{
          echo work
          $sql ="UPDATE tea SET name = ' 8req'  WHERE id = '3 ' "or die ("cant update" . mysql_error());
          if($sql)
              echo"working";
      }
  ?&gt;
  </code></pre>
  
  <p>Can anyone tell me what's the error in the script?</p>
  
  <p>It isn't updating the db, I tried in phpmyadmin  query is working fine. This is what I wrote in sqlquery:</p>
  
  <pre><code>(UPDATE tea SET name = ' 8req' WHERE id = '3 ')
  </code></pre>
  
  <p><a href="https://www.screenr.com/embed/kK6N" rel="nofollow">Here I uploaded the video</a>.</p>