has algo así :
agrega un contador que inicie desde 1.
Código PHP:
Ver original$valid_formats = array("jpg", "png","JPG","jpeg","JPEG","PNG","gif"); $max_file_size = 1024*1000; //100 kb
$path = "images/"; // Upload directory
$count = 0;
$z = 1;
luego en :
Código PHP:
Ver original
$count++; // Number of successfully uploaded file
$imagenes[] = $lid;
$cadena[] = "imagen$z";
$z++;
y ya acá :
Código PHP:
Ver original$nombres_imagenes = implode(",",$imagenes);
$Sql= "insert into jugador (".$new_cadena.") values(".$nombres_imagenes.")";