And it was but I am still getting an error so I started over and tripled checked everything and :
1.table is products_skill_type with field of products_skill type
- type is varchar length 42 and collation latin1_general_ci
define('TABLE_PRODUCTS', DB_PREFIX . 'products');
define('TABLE_PRODUCTS_SKILL_TYPE', DB_PREFIX . 'products_skill_type');
define('TABLE_PRODUCT_TYPES', DB_PREFIX . 'product_types');
3.
p.products_sort_order, pdex.products_skilltype
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd,".
TABLE_PRODUCTS_SKILL_TYPE."pdex
where p.products_id = pd.products_id
and p.products_id = pdex.products_id
$pInfo = new objectInfo($product->fields);
$products_image_name = $pInfo->products_image;
line12
'master_categories_id' => '',
'products_skilltype'=> ''
);
line60;
p.products_price_sorter, p.master_categories_id, pdex.products_skilltype
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " .
TABLE_PRODUCTS_SKILL_TYPE . " pdex
where p.products_id = '" . (int)$_GET['pID'] . "'
and p.products_id = pd.products_id and p.products_id = pdex.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'");
line 305
<!-- BOF - Additional field added -->
<tr>
<td class="main"><?php echo 'Skill Type'; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '13') . ' ' .
zen_draw_input_field('products_skilltype', $pInfo->products_skilltype, zen_set_field_length
(TABLE_PRODUCTS_SKILL_TYPE, 'products_skilltype')); ?></td>
</tr>
<!-- EOF - Additional field added -->
line 153
////////////// MY ADDED FIELDS ////////////////////
$sql_data_array = array('products_skilltype' => zen_db_prepare_input($_POST['products_skilltype']));
if ($action == 'insert_product') {
$insert_sql_data = array('products_id' => $products_id);
$sql_data_array = array_merge($sql_data_array, $insert_sql_data);
zen_db_perform(TABLE_PRODUCTS_SKILL_TYPE, $sql_data_array);
} elseif ($action == 'update_product') {
zen_db_perform(TABLE_PRODUCTS_SKILL_TYPE, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'");
}
/////////////////////////////////////////////
line57
p.products_discount_type, p.products_discount_type_from,
p.products_sort_order, p.products_price_sorter, pdex.products_skilltype
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd,".
TABLE_PRODUCTS_SKILL_TYPE . " pdex
where p.products_status = '1'
and p.products_id = '" . (int)$_GET['products_id'] . "'
and pd.products_id = p.products_id and p.products_id = pdex.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
line102
$products_skilltype = $product_info->fields['products_skilltype'];
line55
<!--bof Product Skill Type -->
<?php
if ($products_skilltype != '') {
?>
<div id="productSkillType" class="productGeneral"><strong>Skill Type: </strong><?php echo $products_skilltype; ?></div>
<?php
}
?>
<!--eof Product Skill Type -->
I have starred at this for mega hours checked for errors - used copy paste when ever I could to ellimate charactor erros.
Admin says:
1054 Unknown column 'pdex.products_id' in 'where clause'
in:
[select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_virtual, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id, p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute, p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max, p.products_sort_order, p.products_discount_type, p.products_discount_type_from, p.products_price_sorter, p.master_categories_id, pdex.products_skilltype from products p, products_description pd, products_skill_type pdex where p.products_id = '22' and p.products_id = pd.products_id and p.products_id = pdex.products_id and pd.language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Also I have seen errors on my pages that is caused by this - such as in my shopping cart there is a phrase that shows up *and *if the cart is empty - then the there is product images if you click on the product images a array of coding comes up.
www...stitchnframeonline...com/snfcart
is my site -
I have lost alot of hair on this one any ideas would be appriciated.
TIA