Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/10/2009, 11:31
lancri
 
Fecha de Ingreso: agosto-2008
Mensajes: 8
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Numero de Filas afectadas en PHP 2

gracias, Ya me cmabie a php 5.3.0 y sigue sin darme ningun resultado
el codigo lo tengo de la siguiente

<html>
<head>
<title>pagina de proceso de datos</title>
</head>
<body>
<?php
@$cod=$_GET['catalogo'];
@$inv=$_GET['inventario'];
@$cos=$_GET['costo'];
@$status=$_GET['estado'];
@$ing=$_GET['transaccion'];
if($cod == Null || $inv == Null || $cos == Null || $status == Null || $ing == Null)
{
@$mensaje .= '
<script name="accion">alert("Falta que llenar algunos datos")</script>
';
echo $mensaje;
exit;
}
header("Location: proyecto1.php");
@ $conexion = mysql_connect("localhost", "root", "");
if(!$conexion)
{
echo "<p align=center> <font size=6> NO SE HA PODIDO CONECTAR CON SERVIDOR </font> </p>";
exit;
}

mysql_select_db("bdinventario");
mysql_query("insert into producto values ('".$cod."','".$inv."','".$cos."','".$status."','" .$ing."')");
printf("Records deleted: %d\n", mysql_affected_rows());
mysql_query("COMMIT");

?>
</body>
</html>