Skip to content

Instantly share code, notes, and snippets.

@chris-at-github
Created June 20, 2013 07:21
Show Gist options
  • Select an option

  • Save chris-at-github/5820837 to your computer and use it in GitHub Desktop.

Select an option

Save chris-at-github/5820837 to your computer and use it in GitHub Desktop.
Kategorie laden
$oDb = oxDb::getInstance();
$oCategory = oxNew('oxcategory');
$oCategory->setLanguage($this->getLanguage());
$sWhere = $oCategory->getSqlActiveSnippet();
$sSelect = 'SELECT * FROM
oxcategories
WHERE oxcategories.oxid = \'' . $oDb->escapeString($sOxid) . '\'';
if($oCategory->assignRecord($sSelect)) {
return $oCategory;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment