QUOTE(mycraz @ 1 Jul, 2009 - 08:03 PM)

CODE
...
if(isset($_POST['display']))
{
$user = $_POST["levels"];
...
Why do you check for display, but use levels?
QUOTE(mycraz @ 1 Jul, 2009 - 08:03 PM)

CODE
...
<td align="center" ><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $rows['id'];
...
// Check if delete button active, start this
if($delete){
for($i=0;$i<$count;$i++){
$del_id = $checkbox[$i];
Remember that JavaScript executes on the browser, & that PHP executes on the server.
So in order for PHP to read the values that the user checked, JavaScript will need to send the values in the Checkboxes back to PHP to be re-evaluated. At the time that PHP sends them, nothing is checked. By the time that they load on the clients browser & get checked, PHP is no longer able to read the input until it's sent through the form.