Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/04/2010, 09:36
poked2am
 
Fecha de Ingreso: marzo-2009
Ubicación: Santiago
Mensajes: 9
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Duda con insert desde txt

Hola Carxl gracias por tu consejo,

empese seguimiento con var_dump(), y me encuentro que el registro nuevo se muere despues del select y no pasa al if del insert

Antes del select :

array(2) { [0]=> string(2) "48" [1]=> string(9) "SOMMELIER" } Update id 48
array(2) { [0]=> string(2) "49" [1]=> string(5) "MUJER" } Update id 49
array(2) { [0]=> string(2) "50" [1]=> string(7) "RELOJES" } Update id 50
array(2) { [0]=> string(2) "51" [1]=> string(17) "ELECTRONICA & USB" } Update id 51
array(2) { [0]=> string(2) "52" [1]=> string(22) "SEMINARIOS & CONGRESOS" } Update id 52
array(2) { [0]=> string(2) "53" [1]=> string(20) "OFICINA Y ESCRITORIO" } Update id 53
array(2) { [0]=> string(2) "54" [1]=> string(10) "BOLIGRAFOS" } Update id 54
array(2) { [0]=> string(2) "55" [1]=> string(8) "LLAVEROS" } Update id 55
array(2) { [0]=> string(2) "57" [1]=> string(9) "PACKAGING" } Update id 57
array(2) { [0]=> string(2) "58" [1]=> string(6) "PRUEBA" }

el ultimo registro con id 58 es el nuevo registro que se deberia insertar

despues del select :

rray(2) { [0]=> string(2) "48" [1]=> string(9) "SOMMELIER" } Update id 48
array(2) { [0]=> string(2) "49" [1]=> string(5) "MUJER" } Update id 49
array(2) { [0]=> string(2) "50" [1]=> string(7) "RELOJES" } Update id 50
array(2) { [0]=> string(2) "51" [1]=> string(17) "ELECTRONICA & USB" } Update id 51
array(2) { [0]=> string(2) "52" [1]=> string(22) "SEMINARIOS & CONGRESOS" } Update id 52
array(2) { [0]=> string(2) "53" [1]=> string(20) "OFICINA Y ESCRITORIO" } Update id 53
array(2) { [0]=> string(2) "54" [1]=> string(10) "BOLIGRAFOS" } Update id 54
array(2) { [0]=> string(2) "55" [1]=> string(8) "LLAVEROS" } Update id 55
array(2) { [0]=> string(2) "57" [1]=> string(9) "PACKAGING" } Update id 57

y asi hasta despues del if del insert osea no pasa para el if del insert el registro nuevo que se deberia insertar, no se que puede ser .... se te ocurre que podria ser

saludos y gracias por la ayuda