This is a discussion on Image disappears after edit category fix within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; The correct code to be replace would be if (!is_null($categories_image->filename)) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| The correct code to be replace would be if (!is_null($categories_image->filename)) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'"); } There was an extra } at the end>> // if (!is_null($categories_image->filename)) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'"); } } // Credits to Abhinav Vishwanathan More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Admin Page - Product Edit Image Display size? | xpman | osCMax v2 Customization/Mods | 9 | 06-04-2008 10:46 AM |
| Image disappears after edit category fix | michael_s | New osCommerce Contributions | 0 | 05-17-2007 02:31 AM |
| Category Image | jewls | osCMax v2 Customization/Mods | 1 | 01-24-2007 10:41 AM |
| Image folders to match category names | digitalbee | osCommerce 2.2 Modification Help | 0 | 08-07-2004 12:19 AM |
| Adding product image to category link | ramonjaime | osCommerce 2.2 Modification Help | 4 | 11-21-2002 06:34 PM |