• Viernes 3 de Mayo de 2024, 01:11

Autor Tema:  Error De Php En Windows  (Leído 858 veces)

CarlosJenniffer

  • Nuevo Miembro
  • *
  • Mensajes: 2
    • Ver Perfil
Error De Php En Windows
« en: Lunes 19 de Noviembre de 2007, 21:45 »
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>prueba</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
  <label>CODIGO
  <input name="CODIGO" type="text" id="CODIGO" value="<?php $row_prueba['CODIGO']; ?>"size="30">
  <br />
  <br />
  NOMBRE
  <input name="Nombre_cargo" type="text" id="Nombre_cargo" onkeypress="return Letras(event)" value="<?php $row_prueba['nombre']; ?>" size="36" />
</label>
  <p>
    <label>
    <input name="Guardar" type="submit" id="Guardar" value="Guardar" />
   <?php
$result = pg_query($conn, "INSERT INTO prueba VALUES ('$CODIGO','$NOMBRE')");
$cmdtuples = pg_affected_rows($result);
echo $cmdtuples . " tuples are affected.\n";
?>
</form>
<?php include('conexprueba.php'); ?>
</body>
</html>


me muestra el error

Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in C:\AppServ\www\cableado\pantallas\prueba\prueba2.php on line 21

Warning: pg_affected_rows(): supplied argument is not a valid PostgreSQL result resource in C:\AppServ\www\cableado\pantallas\prueba\prueba2.php on line 22
tuples are affected. Conexion Extitosa, Conectado

pero la conexion si funciona

porfa ayudenme