Location: PHPKode > scripts > AmaroK Web Frontend > obsidianmusic-2.3.0/inc/sql/sqlite.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
//
//  sqlite.php - SQLite commands
//       REQUIRES PHP5
//
///////////////////////////////////////

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

$sqlite = sqlite3_open($db['name'], 0444, $err);

if($sqlite){
	$enabled = false;
}

function query($query){
	global $sqlite;
	return sqlite3_query($sqlite, $query);
}

function fetch_assoc($res){
	global $sqlite;
	return sqlite3_fetch_array($res, SQLITE_ASSOC);
}

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