Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Write Review Error!


Vinayak

Recommended Posts

Posted

:'( I get this error when trying to write a review:

 

Parse error: parse error, unexpected '\"' in /hsphere/local/home/mywebsite/shop/catalog/product_reviews_write.php on line 48

 

 

Line 48: tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ', '" . tep_db_input($rating) . "', now())");

$insert_id = tep_db_insert_id();

 

 

can anyone see what the problem might be?

 

THankyou

Posted
:'( I get this error when trying to write a review:

 

Parse error: parse error, unexpected '\"' in /hsphere/local/home/mywebsite/shop/catalog/product_reviews_write.php on line 48

Line 48:    tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ', '" . tep_db_input($rating) . "', now())");

      $insert_id = tep_db_insert_id();

can anyone see what the problem might be?

 

THankyou

 

Hi

 

This is the line causing you the error

 

($customer['customers_firstname']) . ', '" . tep_db_input

 

It should look like this.

 

($customer['customers_firstname']) . ' ' . tep_db_input

 

 

Paul

Regards

Paul

Posted

Hi Paul, Thanks heaps for your reply, it fixed up the error. Now however I get a something different further down the write review track...please see my post "error in write Review"

 

 

thanks again

Archived

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

×
×
  • Create New...