Corwyn Posted August 10, 2003 Posted August 10, 2003 I messed up my app-top.php. fixed the file version. I am now getting the following error messages, I'll do one at a time, 1st, Parse error: parse error in /home/corwyn/public_html/phonestore/includes/application_top.php on line 17 line is; error_reporting(E_ALL & ~E_NOTICE); I know the error is & what should it be??? Corwyn
VJ Posted August 10, 2003 Posted August 10, 2003 The code should actually be, error_reporting(E_ALL & ~E_NOTICE);
Corwyn Posted August 10, 2003 Author Posted August 10, 2003 VJ, Thanks, that fixed that, but kicked out the next line same issue I think, Parse error: parse error in /home/corwyn/public_html/phonestore/includes/application_top.php on line 160 if (strlen($PATH_INFO) > 1) { Corwyn
VJ Posted August 10, 2003 Posted August 10, 2003 Your code seems to display HTML special chars as such. > should be > and, < should be < If you run into further trouble and if you haven't modified your application_top.php, replace it with a new application_top.php. HTH, VJ
Corwyn Posted August 10, 2003 Author Posted August 10, 2003 VJ, Unfortunatly, i did nod the original app_top.php I think I got all the > and < Can you tell me what " supposed to be same parse error on line if (ereg (>(.*)][(.*) " $key2, $var)) { Corwyn
VJ Posted August 10, 2003 Posted August 10, 2003 That line of code should actually read, if (ereg ("(.*)][(.*)", $key2, $var)) { BTW, " = " HTH, VJ
VJ Posted August 10, 2003 Posted August 10, 2003 Ah, and this link - http://www.utoronto.ca/webdocs/HTMLdocs/Ne.../iso_table.html might come in handy, if you run into any more trouble. VJ
Corwyn Posted August 10, 2003 Author Posted August 10, 2003 VJ, Yes, thank you that helps. I'm almost done I promise. I think this is another issue though; Please help with this bit - $check_query = tep_db_query("select count(*) as count from" 'TABLE_PRODUCTS_NOTIFICATIONS' " where products_id = " $notify[$i]"'and customers_id ="$customer_id";'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')), 'NONSSL')); Corwyn
VJ Posted August 11, 2003 Posted August 11, 2003 This part of the code, $check_query = tep_db_query("select count(*) as count from" 'TABLE_PRODUCTS_NOTIFICATIONS' " where products_id = " $notify[$i]"'and customers_id ="$customer_id";'"); should probably read, $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = " . $notify[$i] . " and customers_id =" . $customer_id); VJ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.