Vinayak Posted January 19, 2005 Posted January 19, 2005 :'( 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
pauldarthvader Posted January 19, 2005 Posted January 19, 2005 :'( 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 <{POST_SNAPBACK}> 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
Vinayak Posted January 23, 2005 Author Posted January 23, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.