supernoc Posted December 2, 2006 Posted December 2, 2006 Greetings, I have searched for forums for a solution to this error, but have yet to be successful. I am humbly requesting any help or guidance. Parse error: syntax error, unexpected ':' in /home/mydir/public_html/checkout_success.php on line 41 if ($global['global_product_notifications'] != '1') { http://www.mywebsite.com/account_password.php $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); If I remove the 'http://' to see what happens, this is the new error: Parse error: syntax error, unexpected T_VARIABLE in /home/mydir/public_html/checkout_success.php on line 41 Thank you in advance for your ideas. If you require any other information, i would be happy to provide it. - Eric
supernoc Posted December 2, 2006 Author Posted December 2, 2006 Apparent solution: i downloaded the original checkout_sucess.php from the oscommerce downloads, and did a file compare. Apparently there is no url to one's site in the code. Thus I changed it to: if ($global['global_product_notifications'] != '1') { $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); and it appears to work. Weird...as it worked before the other way... maybe php version?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.