Location: PHPKode > scripts > AmaroK Web Frontend > obsidianmusic-2.3.0/inc/sql/postgresql.php
<?php

//
//  ObsidianMusic
//   a.k.a. amaroK Web Frontend 2.0
//
//  Created 11/24/05
//   Copyright (C) Ryan Loebs (ObsidianX) 2005/2006
//   See LICENSE for GPL
//
//  postgresql.php - MySQL commands
//
///////////////////////////////////////

if(eregi("postgresql.php", $_SERVER['PHP_SELF'])){
	die("Cannot access directly.");
}

@pg_connect("host=$db[host] user=$db[user] password=$db[pass] dbname=$db[name]") or ($enabled = false);

function query($query){
	return pg_query($query);
}

function fetch_assoc($res){
	return pg_fetch_assoc($res);
}

function fetch_array($res){
	return pg_fetch_array($res);
}
Return current item: AmaroK Web Frontend