- replaced mysql_query with appdb_query

- fixed mysql query in include/session.php
This commit is contained in:
Jonathan Ernst
2005-01-08 18:24:55 +00:00
committed by WineHQ
parent daff4fdf81
commit dcf7c819a4
4 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@
*/
function getAppsFromUserId($userId)
{
$result = mysql_query("SELECT appId, versionId, superMaintainer FROM ".
$result = query_appdb("SELECT appId, versionId, superMaintainer FROM ".
"appMaintainers WHERE userId = '$userId'");
if(!$result || mysql_num_rows($result) == 0)
return;
@@ -32,7 +32,7 @@ function getMaintainersUserIdsFromAppIdVersionId($appId, $versionId)
$query = "SELECT userId FROM ".
"appMaintainers WHERE appId = '$appId' " .
"AND versionId = '$versionId';";
$result = mysql_query($query);
$result = query_appdb($query);
if(mysql_num_rows($result) == 0)
return; // no sub categories
@@ -55,7 +55,7 @@ function getSuperMaintainersUserIdsFromAppId($appId)
$query = "SELECT userId FROM ".
"appMaintainers WHERE appId = '$appId' " .
"AND superMaintainer = '1';";
$result = mysql_query($query);
$result = query_appdb($query);
if(!$result || mysql_num_rows($result) == 0)
return; // no sub categories