query('select products_id, products_quantity, products_price, products_weight, products_weight_class, products_date_added, products_last_modified, date_format(products_date_available, "%Y-%m-%d") as products_date_available, products_status, products_tax_class_id, manufacturers_id from :table_products where products_id = :products_id'); $Qp->bindTable(':table_products', TABLE_PRODUCTS); $Qp->bindInt(':products_id', $_GET['pID']); $Qp->execute(); $Qpd = $osC_Database->query('select products_name, products_description, products_model, products_keyword, products_tags, products_url, language_id from :table_products_description where products_id = :products_id'); $Qpd->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION); $Qpd->bindInt(':products_id', $_GET['pID']); $Qpd->execute(); $pd_extra = array(); while ($Qpd->next()) { $pd_extra['products_name'][$Qpd->valueInt('language_id')] = $Qpd->value('products_name'); $pd_extra['products_description'][$Qpd->valueInt('language_id')] = $Qpd->value('products_description'); $pd_extra['products_model'][$Qpd->valueInt('language_id')] = $Qpd->value('products_model'); $pd_extra['products_keyword'][$Qpd->valueInt('language_id')] = $Qpd->value('products_keyword'); $pd_extra['products_tags'][$Qpd->valueInt('language_id')] = $Qpd->value('products_tags'); $pd_extra['products_url'][$Qpd->valueInt('language_id')] = $Qpd->value('products_url'); } $pInfo = new objectInfo(array_merge($Qp->toArray(), $pd_extra)); } $Qmanufacturers = $osC_Database->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name'); $Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS); $Qmanufacturers->execute(); $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); while ($Qmanufacturers->next()) { $manufacturers_array[] = array('id' => $Qmanufacturers->valueInt('manufacturers_id'), 'text' => $Qmanufacturers->value('manufacturers_name')); } $Qtc = $osC_Database->query('select tax_class_id, tax_class_title from :table_tax_class order by tax_class_title'); $Qtc->bindTable(':table_tax_class', TABLE_TAX_CLASS); $Qtc->execute(); $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE)); while ($Qtc->next()) { $tax_class_array[] = array('id' => $Qtc->valueInt('tax_class_id'), 'text' => $Qtc->value('tax_class_title')); } $Qwc = $osC_Database->query('select weight_class_id, weight_class_title from :table_weight_class where language_id = :language_id order by weight_class_title'); $Qwc->bindTable(':table_weight_class', TABLE_WEIGHT_CLASS); $Qwc->bindInt(':language_id', $osC_Language->getID()); $Qwc->execute(); $weight_class_array = array(); while ($Qwc->next()) { $weight_class_array[] = array('id' => $Qwc->valueInt('weight_class_id'), 'text' => $Qwc->value('weight_class_title')); } ?>