Ver Mensaje Individual
  #10 (permalink)  
Antiguo 08/07/2010, 09:59
gabymar
 
Fecha de Ingreso: agosto-2008
Mensajes: 94
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: insertar con select

hola roxhp gracias por tu ayuda lo hice como me recomendastes pero nada, no me sale ningun error y ya no se que hacer, gracias, aqui posteo el codigo a ver si le encuentras algo, anteriormente no habia copiado todas las variable porque eran bastante pero ahora si lo coloque a ver q tal..gracias

Código PHP:
$consulta "SELECT * FROM tbuzon where cCod_Uso=2";
$resultado mysql_query($consulta$conexion); 
while(
$rowmysql_fetch_array($resultado)) { 
$nu_solc$row['nu_solc'];
$nu_solc_intr$row['nu_solc_intr'];
$ds_proy_evnt$row['ds_proy_evnt'];
$fe_promt_cte$row['fe_promt_cte'];
$fe_promt_cte_ajus$row['fe_promt_cte_ajus'];
$co_cte$row['co_cte'];
$nb_empr$row['nb_empr'];
$ds_t_cte$row['ds_t_cte'];
$ds_uni_negc$row['ds_uni_negc'];
$ds_serv$row['ds_serv'];
$instl$row['instl'];
$co_central_orig$row['co_central_orig'];
$instl_intr$row['instl_intr'];
$ds_confg$row['ds_confg'];
$ds_uso$row['ds_uso'];
$ds_clas_serv$row['ds_clas_serv'];
$ds_red$row['ds_red'];
$fe_ini_oper$row['fe_ini_oper'];
$fe_fin_oper$row['fe_fin_oper'];
$durope$row['durope'];
$ds_edo_oper$row['ds_edo_oper'];
$t_actv$row['t_actv'];
$t_actor$row['t_actor'];
$nb_centr_trab$row['nb_centr_trab'];
$ds_t_actv$row['ds_t_actv'];
$fe_ini$row['fe_ini'];
$fe_fin$row['fe_fin'];
$ds_edo_actv$row['ds_edo_actv'];
$nb_usr$row['nb_usr'];
$id_actv$row['id_actv'];
$duract$row['duract'];
$visto_por$row['visto_por'];
$ds_sfase$row['ds_sfase'];
$ds_fase$row['ds_fase'];
$ds_usr$row['ds_usr'];
$t_lugar$row['t_lugar'];
$nb_lugar$row['nb_lugar'];
$calle_av$row['calle_av'];
$casa_edf$row['casa_edf'];
$apto_ofc$row['apto_ofc'];
$urbn$row['urbn'];
$prrq$row['prrq'];
$munc$row['munc'];
$nb_cdad$row['nb_cdad'];
$nb_edo$row['nb_edo'];
$cCod_Uso$row['cCod_Uso'];
$grupo='5';

$sql1="insert into tbuzon_puntual($nu_solc,$nu_solc_intr,$ds_proy_evnt,$fe_promt_cte,$fe_promt_cte_ajus,$co_cte,$nb_empr,$ds_t_cte,$ds_uni_negc,$ds_serv,$instl,$co_central_orig,$instl_intr,$ds_confg,$ds_uso,$ds_clas_serv,$ds_red,$fe_ini_oper,$fe_fin_oper,$durope,$ds_edo_oper,$t_actv=,$t_actor,$nb_centr_trab,
$ds_t_actv,$fe_ini,$fe_fin,$ds_edo_actv,$nb_usr,$id_actv,$duract,$visto_por,$ds_sfas,$ds_fas,$ds_usr,$t_lugar,$nb_lugar,$calle_av,$casa_edf,$apto_ofc,$urbn,$prrq,$munc,$nb_cdad,$nb_edo,$cCod_Uso,$grupo)"
;