 
			
				18/11/2007, 17:38
			
			
			     |  
        |     |    |    Fecha de Ingreso: octubre-2007  
						Mensajes: 18
					  Antigüedad: 18 años Puntos: 0     |        |  
  |      Problemas con insert php + postgres        Hola me dedico a uds con la posibilidad de ke me ayuden a encontrar el posible error en este script de insert este es mi codigo:   
<?php 
  $insertSQL = "INSERT INTO doctores(docNo_d, ape1_d, ape2_d, nom_d, rprof_d, dir_d, tel_d, mov_d, email_d, consultorio_d, id_esp_mg) "; 
  $insertSQL .= "VALUES ( '" .$docNo_d. "', '" .$ape1_d. "', '" .$ape2_d. "', '".$nom_d. "', '" .$rprof_d. "', '" .$dir_d. "', '" .$tel_d. "', '" .$mov_d. "', '" .$email_d. "', '" .$consultorio_d. "', '" .$id_esp_mg. "' )";   
  $Result1 = pg_exec($HC,$insertSQL) or die(pg_result_error());   
   echo "<script language=javascript>alert('Datos insertados con Exito!!');</script>"; 
?>   
y esta mi bd en postgres:   
CREATE TABLE doctores 
( 
  foto bytea, 
  "docNo_d" bigint NOT NULL DEFAULT nextval('"doctores_docNo_d_seq"'::regclass), 
  ape1_d character varying, 
  ape2_d character varying, 
  nom_d character varying, 
  rprof_d character varying, 
  dir_d character varying, 
  tel_d bigserial NOT NULL, 
  mov_d bigserial NOT NULL, 
  email_d character varying, 
  consultorio_d numeric, 
  id_esp_mg serial NOT NULL, 
  CONSTRAINT doctores_pkey PRIMARY KEY ("docNo_d"), 
  CONSTRAINT doctores_id_esp_mg_fkey FOREIGN KEY (id_esp_mg) 
      REFERENCES especialidad_mg (id_esp_mg) MATCH SIMPLE 
      ON UPDATE NO ACTION ON DELETE NO ACTION 
)  
WITHOUT OIDS; 
ALTER TABLE doctores OWNER TO postgres;      este es el error ke me sale:   
Warning: pg_exec(): Query failed: ERROR: column "docno_d" of relation "doctores" does not exist at character 22 in c:\appserv\www\hc\html\doctor1.php on line 23    le estare agradecido por cualkier posible solucion; estare pendiente a sus comentarios.   
Gracias de antemano             |