title: php mysql authentication problems
body: <p>I was adding a delete function to my mysql database database but when i hit the submit button i get this Error message "DELETE command denied to user ''@'localhost' for table 'people" Ive taken a look at the user root to see and it has all priveleges added please help this is the code im working on </p>
  
  <pre><code>&lt;?php
  
  $servername = "localhost";
  $username = "root";
  $password = "";
  $dbname = "yoga";
  
  $conn = new mysqli($servername, $username, $password, $dbname);
  
      if($conn -&gt; connect_error){
          die("connection failed: ".$conn -&gt; connect_error);
      }
  
          if(isset($_POST['delete'])){
  
  
          mysql_query("DELETE FROM `yoga`.`people` WHERE `people`.`id` =          '$_POST[deleteId]' ") or die(mysql_error());
          }
  
      ?&gt;
  </code></pre>