- replaced mysql_query() with query_appdb()

- removed opendb()
- removed query_userdb()
- removed error handling from the code as it is done with query_appdb()
This commit is contained in:
Jonathan Ernst
2005-01-12 16:22:55 +00:00
committed by WineHQ
parent bb146a0106
commit d3ad0dba41
25 changed files with 67 additions and 167 deletions

View File

@@ -14,21 +14,6 @@ function query_appdb($sQuery,$sComment="")
}
function query_userdb($sQuery)
{
global $hUserLink;
if(!$hUserLink)
{
$hUserLink = mysql_pconnect(USERS_DBHOST, USERS_DBUSER, USERS_DBPASS);
mysql_select_db(USERS_DB);
}
$hResult = mysql_query($sQuery, $hUserLink);
if(!$hResult) query_error($sComment);
return $hResult;
}
function query_bugzilladb($sQuery,$sComment="")
{
global $hBugzillaLink;