Código PHP:
<?
function add_photos_mass($meggage_update_one,$tot){
global $db;
static $meggage_update=array();
$meggage_update[]=$meggage_update_one;
submenu($current = 'add_photos_mass');
for ($i = 0; $i < $tot; $i++){
echo $meggage_update[$i];
}
?>