Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

onel line at a time error message


Corwyn

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

That line of code should actually read,

 

if (ereg ("(.*)][(.*)", $key2, $var)) {

 

BTW, " = "

 

HTH,

VJ

Posted

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

Posted

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

Archived

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

×
×
  • Create New...