title: How to delete entire row using php?
body: <p>I am making an application where user can register and login using their email and password. User can have their own profile like name, address, etc. I also created DELETE BUTTTON so that user can delete their whole account.
  I want user to tap that DELETE BUTTON and it ask for their email and password to delete their whole account?<em>Below is the code to delete but this just delete what is written in the code, I want to ask individual user to enter thier email and password to delete only their own ROW.</em></p>
  
  <pre><code>&lt;?php
  $servername = "host";
  $username = "username";
  $password = "password";
  $dbname = "myDB";
  
  // Create connection
  $conn = mysqli_connect($servername, $username, $password, $dbname);
  // Check connection
  if (!$conn) {
      die("Connection failed: " . mysqli_connect_error());
  }
  
  // sql to delete a record
  $sql = "DELETE FROM users WHERE user_id=13";
  
  if (mysqli_query($conn, $sql)) {
      echo "Record deleted successfully";
  } else {
      echo "Error deleting record: " . mysqli_error($conn);
  }
  
  mysqli_close($conn);
  ?&gt;
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/hBAR8.png" rel="nofollow">Here in picture one user having user id 13 want to delete his account (entire row)</a></p>