Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

onel line at a time error message


Corwyn

Recommended Posts

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 &amp what should it be???

 

Corwyn

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...