Location: PHPKode > projects > AccSoft > accsoft/lib/database/mysql.php
<?
include ("conf/www.conf");

function DB_Connect() 
{
  $connection=MySQL_Connect(Get_Server(),Get_User(),Get_Password());
  if (!$connection) 
  {
    echo "Nepodarilo se pripojit k SQL serveru !!!<BR>\n";
  flush();
  exit;
  }
  else 
  {
    MySQL_Select_DB(Get_Database());
    return $connection;
  }
}

function DB_Query($query) {
	$result=MySQL_Query($query);
	return $result;
}

function DB_Num_Fields($result) {
	$number=MySQL_Num_Fields($result);
	return $number;
}

function DB_Field_Name ($result,$i) 
{
	$name=MySQL_Field_Name ($result,$i);	
	return $name;
}

function DB_Fetch_Array($result) 
{
	$record=MySQL_Fetch_Array($result);
	return $record;	
}

function DB_Field_table($result) 
{
	$table_name=MySQL_Field_table($result,0);
	return $table_name;	
}

?>
Return current item: AccSoft