Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php # Conectamos con MySQL
  2. pg_connect("host=192.168.56.101 port=5432 dbname=siprocesos user=postgres password=123456");
  3. # Buscamos la imagen a mostrar
  4. $consulta = "select * from sicomparendo.documentos where id=9";
  5. $row=$resultado = pg_query($consulta) or die( "Error en $consulta: " . pg_last_error());
  6.  while($datos = pg_fetch_array($resultado)){
  7.    
  8.     $datos['archivo'];
  9. }
  10. # Mostramos la imagen
  11. # Mostramos la imagen
  12. $content_type = explode(' ', $datos["descripcion"]);
  13. header("Content-type:".isset($content_type[0]) ? $content_type[0] : '');?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement