"; $fld = $_POST ['ch_field']; /* if(empty($fld)){ echo("You didn't select any buildings."); } */ if (! empty ( $fld )) { $N = count ( $fld ); $fld_name = ""; for($i = 0; $i < $N; $i ++) { $fld_name .= $fld [$i] . ","; //echo $i; // $db->query("delete from c9_photos_gallery where id=".$fld[$i]); //$db->print_last_query(); $res = $db->update_sql ( "UPDATE photos SET photoAlbumID =" . $_POST ['album'] . " WHERE photoID = " . $fld [$i] ); //$db->print_last_query(); } $fld_name = rtrim ( $fld_name, "," ); //echo("You selected $N fields(s):
"); //echo "delete where id= ".$fld_name; } //echo""; echo"

"; //************************// echo ""; die (); } //****************** edit form *******************// ?>


Photos Gallery (Select the picture that you want to move to another category)

select ( "select * from photos where photoAlbumID = '" . $_REQUEST ['albumID'] . "'" ); $i = 1; echo ""; while ( $row_img = $db->get_row ( $res_img, 'MYSQL_BOTH' ) ) { ?> "; } } echo "
"; //} ?>