Quote Originally Posted by Robin H View Post
Notice I changed your checkbox.
I added name=" and value=""

I'm fairly tired atm and can't focus. So could be entirely wrong

PHP Code: 
<?php
if($_GET['do'] == 'submit' && !empty($_POST['id'])){
  foreach(
$_POST['id'] as $ID){
    if(!
is_numeric($ID)){
      echo 
' Whaaaat, the ID '.$ID.' isn\'t a number? ';
      exit;
   }
   
mysql_query('UPDATE `images` SET `approved` = "true" WHERE `id` = '.$ID);
  }
}else{
  
// Show form
  
$picture mysql_query("SELECT path, id FROM images WHERE approved='false'"); 
  echo 
"<form action='approve.php?do=submit' method='post'>" ;
  while(
$result mysql_fetch_array($picture)){ 
   echo 
"<img src='../".$result['path']."'>"
   echo 
'<input type="checkbox" name="id[]" value="'.$result['id'].'" id="'.$result['id'].'" />';
  } 
  echo 
"</form>";
}
?>
Worked perfect thanks