It is working right but when i pass to the update script below give me the warning:
Warning: pg_query() query failed: ERROR: pg_atoi: zero-length string in /var/www/html/adm/modificar_2.php on line 21
ERROR
<?php
$id = $POST['id'];
$titulo = $POST['titulo'];
$texto = $_POST['texto'];
include 'db.php';
$query = "UPDATE informativo SET titulo='$titulo', texto='$texto' WHERE id='$id'";
$result = pg_query($db, $query);
if (!$result) {printf ("ERROR"); exit;}
print ("Estes valores foram atualizados:<P> - $titulo<BR>- $texto<BR>");
pg_close($db);
?>
What can it be?
thank´s in advance