jjackson Posted March 18, 2005 Share Posted March 18, 2005 Here's my code for my Quick Update mod. I've added a new column to display values from a new field I've created in my dbase... connection is fine.. everything works perfect... I just can't seem to get dbase entry to show in the field on the Quick Update page.. here's my layout.. Price Special Product_high $50 $34 blank $45 $22 blank when I click update it saves the new value I place in the Product_high field, but it does not display it in the box after the update... here's the code... can you tell me what I'm missing.. ============================================== echo "<td class=\"smallText\" align=\"left\"> <input type=\"text\" size=\"6\" name=\"product_new_price[".$products['products_id']."]\" value=\"".$products['products_price']."\" > <input type=\"text\" size=\"6\" name=\"specials_new_price[".$spec['specials_id']."]\" value=\"".$spec['specials_new_products_price']."\"> <a target=blank href=\"".tep_href_link (FILENAME_SPECIALS, 'sID='.$spec['specials_id']).'&action=edit'."\">". tep_image(DIR_WS_IMAGES . 'icon_info.gif', TEXT_SPECIALS_PRODUCTS) ."</a> <input type=\"text\" size=\"6\" name=\"product_new_high[".$products['products_id']."]\" value=\"".$products['products_high']."\"></td>\n"; ========================================== Link to comment Share on other sites More sharing options...
Nick H Posted March 18, 2005 Share Posted March 18, 2005 This part of the code looks ok (I think) Are you setting $products['price_high'] somewhere? This would be somthing like $product=array(..., 'products_high' = tep_post_var('product_new_high[<number>]'),...) This would be somewhere around where the database update/insert is called. Link to comment Share on other sites More sharing options...
jjackson Posted March 18, 2005 Author Share Posted March 18, 2005 This part of the code looks ok (I think) Are you setting $products['price_high'] somewhere? This would be somthing like $product=array(..., 'products_high' = tep_post_var('product_new_high[<number>]'),...) This would be somewhere around where the database update/insert is called. <{POST_SNAPBACK}> Nick, thanks for your response... I just can't seem to get the products_high value to show up in the field in my quick_update.php page... am i missing an echo somewhere Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.