Problemas con Cabeceras

From: Date: Tue, 14 Sep 2004 16:06:05 +0000
Subject: Problemas con Cabeceras
Groups: php.general.es 
Request: Send a blank email to general-es+get-51299@lists.php.net to get a copy of this message
Hola a todos, soy nuevo en la lista y en el uso de PHP, tengo el siguiente codigo: <?php
      include("lib_db.php");
      $link=Conectarse();
      $result = pg_Exec($link,"select max(marca_codigo) from marcas;");
$codigo = pg_result($result, 0, 0) + 1; $nombre=$_GET['nombre'];
      pg_Exec($link,"insert into marcas (marca_codigo,marca_descrip) values ($codigo,'$nombre');");
      header("Location: insert.php");
?> el cual invoco desde otra pagina, hace todo bien hasta la penultima linea "header("Location: insert.php");", me devuelve el siguiente error: Warning: Cannot add header information - headers already sent by (output started at /var/www/html/sast/lib_db.php:8) in /var/www/html/sast/codigo_insert.php on line 8 agradecria muchisimo a quien me pueda ayudar,

« previous php.general.es (#51299) next »