Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected T_IF, expecting ')'


Chris Smith

Recommended Posts

Parse error: syntax error, unexpected T_IF, expecting ')' in /home/******/public_html/*****/categories.php on line 259

 

 

This is line 259-261

 

if ($action == 'insert_product') {

$insert_sql_data = array('products_id' => $products_id,

'language_id' => $language_id);

 

Can anyone see what it's saying I know very,very little but have actually managed to install many contributions by luck. ;)

Link to comment
Share on other sites

Parse error: syntax error, unexpected T_IF, expecting ')' in /home/******/public_html/*****/categories.php on line 259

This is line 259-261

 

if ($action == 'insert_product') {

$insert_sql_data = array('products_id' => $products_id,

'language_id' => $language_id);

 

Can anyone see what it's saying I know very,very little but have actually managed to install many contributions by luck. ;)

 

 

Parse error: syntax error, unexpected T_CASE in /home/*****/public_html/*****/categories.php on line 298

 

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));

}

break;

298 case 'copy_to_confirm':

if (isset($HTTP_POST_VARS['products_id']) && isset($HTTP_POST_VARS['categories_id'])) {

$products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);

$categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);

 

Anyone?

Link to comment
Share on other sites

Parse error: syntax error, unexpected T_CASE in /home/*****/public_html/*****/categories.php on line 298

 

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));

}

break;

298 case 'copy_to_confirm':

if (isset($HTTP_POST_VARS['products_id']) && isset($HTTP_POST_VARS['categories_id'])) {

$products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);

$categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);

 

Anyone?

 

:-"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...