title: How can i print a success message for insert,update or delete?
body: <p>I have a <strong>select page</strong> which displays all records from a table.For each record there is a corresponding link for editing / deleting a record.In this page,I have also given a link which opens up another page for inserting records.</p>
  
  <p>When I click on the delete link for a particular record , a <strong>delete.php</strong> is executed which deletes the record and redirects the user to the <strong>select</strong> page</p>
  
  <p>Now , I want to display a success message(delete) in the <strong>select page</strong> (just below the records which are displayed).How can I position the success message just below the records that are displayed ?</p>
  
  <p>Should i use <strong>mysqli_affected_rows</strong> and pass this value to the <strong>select</strong> page .How do i pass this value?</p>
  
  <p>My delete.php file looks something like this :</p>
  
  <pre><code>include "connection.php";
  $sql = "DELETE FROM `student`  
  WHERE `id` = '$_GET[del_id]'";
  mysqli_query($conn, $sql) or die ("Delete Error");
  Header("Location: select.php");
  </code></pre>