Add notify messages to editAppFamily

This commit is contained in:
Tony Lambregts
2005-01-08 18:28:32 +00:00
committed by WineHQ
parent 5cad791b03
commit 1d26c64a9a
4 changed files with 154 additions and 14 deletions

View File

@@ -227,4 +227,16 @@ function deleteCategory($catId)
addmsg("Failed to delete category $catId: ".mysql_error(), "red");
}
}
Function lookupCategoryName($catId)
{
$sResult = query_appdb("SELECT * FROM appCategory ".
"WHERE catId = ".$catId);
if(!$sResult || mysql_num_rows($sResult) != 1)
return "Unknown category";
$ob = mysql_fetch_object($sResult);
return $ob->catName;
}
?>