havlinhouse Posted July 20, 2005 Share Posted July 20, 2005 I think I'm going batty, This is the erro I am getting: Parse error: parse error, unexpected $ in /home/havlinho/public_html/oscart/includes/functions/database.php on line 143 This is the text: from line 130-143 function tep_db_prepare_input($string) { if (is_string($string)) { return trim(tep_sanitize_string(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; } } ?> I would appreciate any help!!! :huh: Manythanks Simone Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 20, 2005 Share Posted July 20, 2005 When the error line equals the last line in the file, it means the error could be anywhere in the file. Were you editing that file before you started getting the error? If you have a backup of the file, try loading it. That file is usually not one that gets edited so you can probably replace it from the oscommerce package although you should compare them first. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.