here is where $key_features appears:
collect_info.php
Code:
elseif (zen_not_null($_POST)) {
$pInfo->objectInfo($_POST);
$products_name = $_POST['products_name'];
$products_description = $_POST['products_description'];
$products_url = $_POST['products_url'];
$key_features = $_POST['key_features_id'];
$author = $_POST['author_id'];
$isbn = $_POST['isbn_id'];
$pages = $_POST['pages_id'];
}
$key_features_array = array(array('id' => '', 'text' => TEXT_NONE));
$key_features = $db->Execute("select products_id, key_features_id
from " . TABLE_PRODUCT_PRINT_EXTRA . " order by key_features_id");
while (!$key_features->EOF) {
$key_features_array[] = array('id' => $key_features->fields['products_id'],
'text' => $key_features->fields['key_features_id']);
$key_features->MoveNext();
main_template_vars.php
Code:
$sql = "select * from " . TABLE_PRODUCT_PRINT_EXTRA . "
where key_features_id = '" . $print_extras->fields['key_features_id'] . "'";
$key_features = $db->Execute($sql);
Code:
$key_features = $product_info->fields['key_features_id'];
tpl_product_print_info_display.php
Code:
<h2 class="pageHeadingP">Key Features</h2>
<p><?php echo ((SHOW_PRODUCT_PRINT_INFO_KEY_FEATURES == '1' and !empty($key_features)) ? TEXT_PRODUCT_KEY_FEATURES . $key_features : ''); ?></p>
And I'm not sure what I've done but "Key Features:" is no longer displaying either.
Any idea of where I might have gone wrong? If you need more context for the code, just let me know. I'm not sure if any of the code above is where the info is actually "extracted." I'm still learning php.
thanks!
june
Bookmarks