Código PHP:
public class Personal extends Entrada {
Hashtable <Object,Object> data;
Vector <Hashtable> bd;
public void Personal(){
bd = new Vector <Hashtable>();
}
public void Actualizacion() throws IOException{
try{
int aux = Integer.parseInt(this.Lectura("Introduca la cantidad de personas a inscribir : "));
for(int i=0; i < aux ; i++){
data = new Hashtable <Object, Object>();
data.put("cedula",Integer.parseInt(this.Lectura("Introduzca cedula :")));
data.put("nombre",this.Lectura("Introduzca nombre :"));
data.put("edad",Integer.parseInt(this.Lectura("Introduzca edad :")));
data.put("telefono",Integer.parseInt(this.Lectura("Introduzca telefono :")));
data.put("sexo",this.Lectura("Introduzca sexo :"));
try{
bd.addElement(data);
}catch(Exception e){
System.out.println(e.getMessage());
}
}
}catch(IOException e) {
System.out.println(e.getMessage());
}
}
}