title: Multiple CheckBox delete
body: <p>I am having a hard time on creating a multiple checkbox ajax delete. I am an ajax noob. </p>
  
  <pre><code>    $sql = 'SELECT * FROM users';
  $qry = mysql_query($sql);
  $html = '';
  $html .='&lt;center&gt;';
  $html .= '&lt;a href="" id="a-add"&gt;+ Add New User&lt;/a&gt;';
  $html .= ' || &lt;a href="" id="a-delete"&gt; Delete User&lt;/a&gt;';
  $html .= '&lt;div id="div-data"&gt;';
  $html .= '&lt;table border="1" width="300px"&gt;';
  $html .= '&lt;tr&gt;';    
  $html .= '&lt;th width="5px"&gt;&lt;input type="checkbox" id="cb-checkall"&gt;&lt;/th&gt;';   //all
  $html .= '&lt;th&gt; Users&lt;/th&gt;';         
  //$html .= '&lt;th&gt;Delete&lt;/th&gt;';
  while($row = mysql_fetch_array($qry)) {
      $html .= '&lt;tr align="center"&gt;';     
      $html .= '&lt;td&gt;&lt;input type="checkbox" name="checkall" class="checkall" value="'.$row['uid'].'"/&gt;&lt;/td&gt;';   
      $html .= '&lt;td&gt;'.$row['fname'].'&lt;/td&gt;';
      $html .= '&lt;/tr&gt;';           
  }
  $html .= '&lt;/table&gt;';
  $html .= '&lt;/div&gt;';
  echo $html;
  </code></pre>
  
  <p>delete.php (with the use of implode)</p>
  
  <pre><code>    $deleteid = implode(",",$_POST['checkall']);
  $fname = mysql_escape_string($_POST['firstname']);
  $sql = "DELETE from  `bpo`.`users` (`uid` ,`fname`)
          WHERE UID IN (".$deleteid.")";
  </code></pre>
  
  <p>My data doesnt go to delete.php. idk why. I need help on deleting the checked rows when I push delete button and automatically reflects to my database. The change have to appear on screen without refreshing (AJAX) and with the use of implode. Thank you.</p>