<?php 
function Conectar() 
{
	$host =     'localhost';
	$database = 'sisaguaguano';
	$table =    'georeferencia';
	$column =   'geom';
	$user =     'postgres';
	$pass =     'dsidsi_2012';

   if (!($link=pg_connect("host=$host dbname=$database user=$user password=$pass")) )
   { 
      echo "Error conectando a la base de datos."; 
      exit(); 
   }    
   return $link;
}
?>