Location: PHPKode > projects > Electronic Design Automation - Index > eda-index-1.0MLH/web/functions.mysql.inc.php
<?php

#########################################################################
# Electronic Design Automation - Index (EDA - Index)			#
#########################################################################
#									#
# Copyright (c) 2003 by Bruno Thomsen (hide@address.com)	#
# My Homepage: http://www.spacecave.dk/					#
# Project Homepage: http://eda-index.sourceforge.net/			#
# Project @ SourceForge.net: http://sourceforge.net/projects/eda-index/	#
# Project @ Freshmeat.net: http://freshmeat.net/projects/eda-index/	#
# Project Demo: http://eda-index.sourceforge.net/demo/			#
#									#
# This program is free software; you can redistribute it and/or modify	#
# it under the terms of the GNU General Public License as published by	#
# the Free Software Foundation; either version 2 of the License, or	#
# (at your option) any later version.					#
#									#
# This program is distributed in the hope that it will be useful,	#
# but WITHOUT ANY WARRANTY; without even the implied warranty of	#
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the		#
# GNU General Public License for more details.				#
#									#
#########################################################################

#########################################################################
# MySQL Functions:							#
#########################################################################

function opendb($dbhost,$dbuser,$dbpass,$dbname) {
  mysql_connect("$dbhost","$dbuser","$dbpass");
  mysql_select_db("$dbname");
}


function getdata($sql) {
  $result = mysql_query("$sql");
  return $result;
}


# function getdata need to be altered to include get / save / update.


function closedb() {
  mysql_close();
}


?>
Return current item: Electronic Design Automation - Index