I am a beginner in PHP. I was trying to create a password manager using PHP and MySQL. But I am having trouble at this point:

```
<?php
require 'dbconnect.php';

$sql = "SELECT * FROM pmanager";
$result = mysql_query($sql,$con);
if (!$result) die ("Database access failed: " . mysql_error());
$rows = mysql_num_rows($result);
//Views results from existing rows
   for ($j = 0 ; $j < $rows ; ++$j)
    {
        echo 'Account: ' . mysql_result($result,$j,'account') . '<br />';
        echo 'E-mail: ' . mysql_result($result,$j,'email') . '<br />';
        echo 'Username: ' . mysql_result($result,$j,'uname') . '<br />';
        echo 'Password: ' . mysql_result($result,$j,'pword') . '<br />'; ?>
        <form method="post"> <input type="hidden" name="id" value="<?php echo mysql_result($result, $j, 'id'); ?> " /><input type="submit" name="del" value="Delete" /> </form>
 <?php }
if(isset($_POST['del']))
    {
       $sql1 = "DELETE FROM pmanager WHERE id = " . $_POST['id'];
       if(mysql_query($sql1,$con))
       {
          echo 'Deleted';
       }
       else
           echo 'Error: '.mysql_error();
    }
mysql_close($con);
?>

```

Suppose there are two rows in the table "pmanager" containing two Account (e.g. FB, Twitter). And after executing the code there will be a delete button for each of the accounts. Now what can I do to this button click event so that the desired account can be deleted?

This is my first question in StackOverflow :)