baud Posted May 7, 2010 Share Posted May 7, 2010 hi i ve installed several oscommerce shops and so far this is the first time ive come across this problem is that when i write < or > in the product description, it always comes out an underscore this means that i can not use any html tags the problem happens in both english and greek which my shop runs i have used ultimate seo urls cDynamic_Meta_Tags v1.5.3 and tinymce editor (which i have used in all my oscommerce installations and work fine) BUT i have removed all these in the specific installation (i think) both the database entries and pages but it still does that. I can only edit the product description from php my admin Any ideas? tnx tnx tnx Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2010 Share Posted May 7, 2010 It could be your tep_db_prepare_input() function. Check admin/includes/functions/database.php. The function should be function tep_db_prepare_input($string) { if (is_string($string)) { return trim(stripslashes($string)); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } Link to comment Share on other sites More sharing options...
baud Posted May 7, 2010 Author Share Posted May 7, 2010 It could be your tep_db_prepare_input() function. Check admin/includes/functions/database.php. The function should be function tep_db_prepare_input($string) { if (is_string($string)) { return trim(stripslashes($string)); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } wow thanks worked on the spot i ve messed around with oscommerce but dont know php or mysql so i was lost on this and had this issue for a while now Thanks a lot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.