Set up notify system. Send notify emails for ad and delete Coments

This commit is contained in:
Tony Lambregts
2004-11-09 22:42:12 +00:00
committed by Jeremy Newman
parent c81eebd949
commit 90ac967f43
6 changed files with 147 additions and 6 deletions

View File

@@ -76,3 +76,24 @@ class Application {
return $list;
}
}
function lookupVersionName($appId, $versionId)
{
$result = mysql_query("SELECT versionName FROM appVersion WHERE versionId = $versionId and appId = $appId");
if(!$result || mysql_num_rows($result) != 1)
return null;
$ob = mysql_fetch_object($result);
return $ob->versionName;
}
function lookupAppName($appId)
{
$result = mysql_query("SELECT appName FROM appFamily WHERE appId = $appId");
if(!$result || mysql_num_rows($result) != 1)
return null;
$ob = mysql_fetch_object($result);
return $ob->appName;
}
?>