Jump to content

syntax error, unexpected T_VARIABLE


scmeeker

Recommended Posts

I have gone over this and over it and I can't find the syntax error. Perhaps another set of eyes will find it. :)

 

$sql="UPDATE product SET title='$item_title', description='$item_description', price='$item_price', ship_to='$item_ship_to', shipping_cost='$item_shipping_cost', international='$item_international', in_location='$item_in_location', in_shipping='$item_in_shipping', country='$item_country', city='$item_city', state='$item_state', sub_id='$item_sub_id',  cat_id='$item_cat_id', date=NOW(), exp_date=DATE_ADD(NOW()INTERVAL 59 DAY), relist_date=DATE_ADD(NOW(),INTERVAL 45 DAY),  image_upload_box='$item_image_upload', thumb='$item_thumb', artist_email='$artist_email' WHERE id = '"$_GET['id']'";

Link to comment
https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/
Share on other sites

$sql="UPDATE product SET title='$item_title', description='$item_description', price='$item_price', ship_to='$item_ship_to', shipping_cost='$item_shipping_cost', international='$item_international', in_location='$item_in_location', in_shipping='$item_in_shipping', country='$item_country', city='$item_city', state='$item_state', sub_id='$item_sub_id',  cat_id='$item_cat_id', date=NOW(), exp_date=DATE_ADD(NOW()INTERVAL 59 DAY), relist_date=DATE_ADD(NOW(),INTERVAL 45 DAY),  image_upload_box='$item_image_upload', thumb='$item_thumb', artist_email='$artist_email' WHERE id = '{$_GET['id']}'";

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.