Foros del Web » Creando para Internet » HTML »

No me esta agregando nada a mi base de datos (phpmyadmin)

Estas en el tema de No me esta agregando nada a mi base de datos (phpmyadmin) en el foro de HTML en Foros del Web. QUE TAL: ESTE ES EL CÓDIGO QUE ESTOY OCUPANDO PARA AGREGAR DETALLES DE FACTURAS, COMPRAS, ETC EL PROBLEMA ES QUE AL MOMENTO DE REFLEJAR EN ...
  #1 (permalink)  
Antiguo 12/05/2009, 17:13
 
Fecha de Ingreso: abril-2009
Mensajes: 9
Antigüedad: 15 años
Puntos: 2
No me esta agregando nada a mi base de datos (phpmyadmin)

QUE TAL:

ESTE ES EL CÓDIGO QUE ESTOY OCUPANDO PARA AGREGAR DETALLES DE FACTURAS, COMPRAS, ETC

EL PROBLEMA ES QUE AL MOMENTO DE REFLEJAR EN LA PANTALLA "AGREGAR DETALLE" NO HACE NADA, SOLO ME APARECE MI TABLA PERO NO ME APARECE LO QUE VOY AGREGANDO.

PONGO EN LETRA DE COLOR ROJO EL CÓDIGO DONDE NO VEO NADA EN MI BASE DE DATOS, NO ME AGREGA NADA. (estoy ocupando phpadmyadmin)

ESPERO ME HAYA EXPLICADO BIEN.

SALU2
rcra


ASÍ EMPIEZA MI CÓDIGO:



<?php
$titulo = "Articulos";
include('html.php');
include('conecta.php');

if (isset($_POST[fin])){
echo '<meta content="1; url=cap_en_linea.php" HTTP-EQUIV="REFRESH">';
exit();


}
if (isset($_POST[Eli])){
mysql_query("delete from factura where id = '$_POST[Eli]'");


}
if (isset($_POST[bdetalle])){
$re = mysql_fetch_array(mysql_query("select * from factura where id = '$_POST[t0]'"));
mysql_query("update factura set partidaSPSS='$_POST[partidas]', hs='$_POST[hs]', articulo='$_POST[txt3]', preciounitario='$_POST[txt5]', piezas='$_POST[txt4]', monto='$_POST[txt6]', iva='$_POST[txt7]', total= '$_POST[txt8]', observaciones='$_POST[txt9]')");
}



if (isset($_POST[bagre_com])){
$sql = mysql_query("insert into factura (fecha_captura,aniocomprobacion,mescomprobacion,un idad,proveedor,numfactura,fechafactura,OP,tipoOP,n o_aut_transf,fecha_almacen,no_entrada_almacen,apl_ iva) values ('$_POST[t1]','$_POST[t2]','$_POST[t3]','$_POST[t4]','$_POST[t5]','$_POST[t6]','$_POST[t7]','$_POST[t8]','$_POST[t9]','$_POST[t10]','$_POST[t11]','$_POST[t12]','$_POST[t13]')" );
$nr = mysql_insert_id($con);//saca el ultimo registro insertado
}else{
$nr = $_POST[t0];
}


$reg = mysql_fetch_array(mysql_query("select * from factura where id = '$nr'"));
?>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:10.